[Swan-dev] New Defects reported by Coverity Scan for antonyantony/libreswan

scan-admin at coverity.com scan-admin at coverity.com
Mon Apr 3 01:51:16 EEST 2023


Hi,

Please find the latest report on new defect(s) introduced to antonyantony/libreswan found with Coverity Scan.

1 new defect(s) introduced to antonyantony/libreswan found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1537051:  Null pointer dereferences  (REVERSE_INULL)
/programs/pluto/kernel_ops.c: 299 in kernel_ops_del_ipsec_spi()


________________________________________________________________________________________________________
*** CID 1537051:  Null pointer dereferences  (REVERSE_INULL)
/programs/pluto/kernel_ops.c: 299 in kernel_ops_del_ipsec_spi()
293     	const char *said_story = str_said(&said, &sbuf);
294     
295     	address_buf sb, db;
296     	ldbg(logger, "%s() deleting sa %s-%s["PRI_IPSEC_SPI"]->%s for %s ...",
297     	     __func__,
298     	     str_address(src, &sb),
>>>     CID 1537051:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "proto" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
299     	     proto == NULL ? "<NULL>" : proto->name,
300     	     pri_ipsec_spi(spi),
301     	     str_address(dst, &db),
302     	     said_story);
303     
304     	passert(kernel_ops->del_ipsec_spi != NULL);


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq8aBKViEpsZ9KPFMeJd7kKMDjyzu82COVFw1h1aYx-2FtFrefiPxkohPqZgI7DsTRPR5L954NuJuE0J6c4ee-2B5kYdB_3_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ3-2BnzMetZG51veLMLYdfY5JktVzIfATLyiMAZMaCiHOo89usxtpCVpWI-2FNMXeUSFJdx-2BOSBRuG0gb8M9pCZitmMuKkPW5PbzqEyQy0GmAHdBPoaAd5NdUurbrNLGqWwinkfPXQ-2F-2F-2B45KNo3YgQAqOiMcETB1SXkbDQCFpZnKVwKR-2FdatN16dAnsz3qFSGQGoAOE-3D

  To manage Coverity Scan email notifications for "swan-dev at lists.libreswan.org", click https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yped04pjJnmXOsUBtKYNIXxUzCfl-2FUi6sRJtnGH1-2FWXEIl9xkb2JliKiAkqgdujeIgWYvUCIHO1g-2Ba8I-2B0nANYHmrw9-2B13a9hJ7YOPZRdlHcEQfoMvDvjqsfrRNzFQ8lscduvXP5RLkPig71dIKudxiIq0l_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ3-2BnzMetZG51veLMLYdfY5JktVzIfATLyiMAZMaCiHOo8wArUe1UCg2jNPmUuBF1RNVBIBNHc9s6xfo85u7aSnN1-2B-2BtB3wshOcs8pOllXBQm6bfpHkc2ZN7oFcMfptqPxHtJE0Y1-2BM89xzpLvsk5ZpinulKrhxobfBdp0uOmXZudQks6IT8oeGJmyn3ij0qxo5c-3D



More information about the Swan-dev mailing list