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

scan-admin at coverity.com scan-admin at coverity.com
Wed Mar 15 01:51:19 EET 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 1536727:  Null pointer dereferences  (REVERSE_INULL)
/programs/pluto/connections.c: 280 in discard_connection()


________________________________________________________________________________________________________
*** CID 1536727:  Null pointer dereferences  (REVERSE_INULL)
/programs/pluto/connections.c: 280 in discard_connection()
274     {
275     	struct connection *c = *cp;
276     	*cp = NULL;
277     
278     	ldbg(c->logger, "%s() %s "PRI_CO" from "PRI_CO,
279     	     __func__, c->name,
>>>     CID 1536727:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "c" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
280     	     pri_connection_co(c),
281     	     pri_connection_co(c->clonedfrom));
282     
283     	/*
284     	 * Don't expect any offspring?  Something handled by caller.
285     	 */


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq8aBKViEpsZ9KPFMeJd7kKMDjyzu82COVFw1h1aYx-2FtFrefiPxkohPqZgI7DsTRPR5L954NuJuE0J6c4ee-2B5kYOYGp_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ3-2BO-2FlKu1Hli3NylHd-2BfYFoYASeXqdqeviRJrGA8KPVVbVofxFBMEc-2BtihXcMXt0lhjKdzEhFXLI5-2BXy87EfDKmiWMF4etuZWlXdVbKagK9ZWsdmLrnnfi6CdgiA1xEPqK9iJA4-2BkgHVN2zegJeN83wShRw2ClPXJ1Ucpr7UpW-2Btc9N96hKieXvfy73k2iD5mC8-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-2B13a9hJ7YOPZRdlHcEQfoMvDvjqsfrRNzFQ8lscduvXP5RLkPig71dIKudxiouBX_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ3-2BO-2FlKu1Hli3NylHd-2BfYFoYASeXqdqeviRJrGA8KPVVbS5z1ysjUQRo8nkHySiD859nt9UWai4tbXuQr19oPFYTngUPczImfWY3zo2BVOq-2BL1vmBkM3czr0pD6xeIzyx91TN17yfQyogXNk-2F7wfT8Ny4vPJRDKDVLyxjyQJY9p3tEmALHSAZAk5CDsthWmx-2Ba0-3D



More information about the Swan-dev mailing list