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

scan-admin at coverity.com scan-admin at coverity.com
Fri Nov 25 01:50:55 EET 2022


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 1527577:  Code maintainability issues  (UNUSED_VALUE)
/programs/pluto/connections.c: 2878 in extract_connection()


________________________________________________________________________________________________________
*** CID 1527577:  Code maintainability issues  (UNUSED_VALUE)
/programs/pluto/connections.c: 2878 in extract_connection()
2872     					     "%*s%s child spd from selector %s %s.spd.has_client=%s virt=%s",
2873     					     indent, "", spd_end->config->leftright,
2874     					     str_selector(&spd_end->client, &sb),
2875     					     leftright, bool_str(spd_end->has_client),
2876     					     bool_str(spd_end->virt != NULL));
2877     				}
>>>     CID 1527577:  Code maintainability issues  (UNUSED_VALUE)
>>>     Assigning value "4U" to "indent" here, but that stored value is overwritten before it can be used.
2878     				indent = 4;
2879     				/* default values */
2880     				passert(spd->routing == RT_UNROUTED);
2881     				passert(spd->eroute_owner == SOS_NOBODY);
2882     				/* leave a debug-log breadcrumb */
2883     				set_spd_routing(spd, RT_UNROUTED);


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq8aBKViEpsZ9KPFMeJd7kKMDjyzu82COVFw1h1aYx-2FtFrefiPxkohPqZgI7DsTRPR5L954NuJuE0J6c4ee-2B5kYPRME_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ3-2Bbq4Z2yqlG1atlSTgSkYZqun8EvLIW-2BQ0MAz4x9gJzx3CmH8L-2BXNrrKqSEF2BJHoeU53jJhiolwbpCj8WTtnrUT119CBvINiM-2FLaTLIKByLbq7E1hQiToNlyJl-2Be3DrwrqI7V3hBsa8QHEt4hPJXrL4otzUlO7r35-2BAP0V2AO8gzwqXkoaifGY8dg6WY5QBUA-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-2B13a9hJ7YOPZRdlHcEQfoMvDvjqsfrRNzFQ8lscduvXP5RLkPig71dIKudxiVzDo_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ3-2Bbq4Z2yqlG1atlSTgSkYZqun8EvLIW-2BQ0MAz4x9gJzx6fInmUGLvjjmftQVkNo9E65UHVasJDpi5jXYkFEndxrks3zZASB2nBGQ-2Bd-2B4XN-2Ba9d6cFc-2Fr69oIU6sdh5gRZxidENuaZLRzKcX-2BRhsiMFVm0IVz-2FbRvuX-2BybRRj-2FTStyFU7mdVjhqvkxvRkB-2FS-2Biw-3D



More information about the Swan-dev mailing list