[Swan-dev] New Defects reported by Coverity Scan for antonyantony/libreswan
scan-admin at coverity.com
scan-admin at coverity.com
Mon Dec 5 13:50:56 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 1528067: Null pointer dereferences (FORWARD_NULL)
/programs/pluto/kernel.c: 2834 in route_and_eroute()
________________________________________________________________________________________________________
*** CID 1528067: Null pointer dereferences (FORWARD_NULL)
/programs/pluto/kernel.c: 2834 in route_and_eroute()
2828 *
2829 * A feature of LINUX allows us to install the new route
2830 * before deleting the old if the nexthops differ.
2831 * This reduces the "window of vulnerability" when packets
2832 * might flow in the clear.
2833 */
>>> CID 1528067: Null pointer dereferences (FORWARD_NULL)
>>> Dereferencing null pointer "esr".
2834 if (sameaddr(&sr->local->host->nexthop,
2835 &esr->local->host->nexthop)) {
2836 if (!do_updown(UPDOWN_UNROUTE, ro, sr, st, logger)) {
2837 dbg("kernel: unroute command returned an error");
2838 }
2839 route_installed = do_updown(UPDOWN_ROUTE, c, sr, st, logger);
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq8aBKViEpsZ9KPFMeJd7kKMDjyzu82COVFw1h1aYx-2FtFrefiPxkohPqZgI7DsTRPR5L954NuJuE0J6c4ee-2B5kYxOTd_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ38VcTx3P3NwzUKxzC1oR3IJcpDlFTU6spRH4-2B5f7SceQ9WvSkEg7C00C7vHx08ZqWg-2BA-2FVCf3WLbSdYmmsk-2BgJ3mskm9H74s60ar7qjlwtTT56hDj6aDi8S4T-2FzzqZuGmVk-2BMKzE412s2fcBBxuNcYLtYYvZIq4EJekw1OQCew7bXIIMfBQkIZUTqQf0xkK7ts-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-2B13a9hJ7YOPZRdlHcEQfoMvDvjqsfrRNzFQ8lscduvXP5RLkPig71dIKudxikdKZ_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ38VcTx3P3NwzUKxzC1oR3IJcpDlFTU6spRH4-2B5f7SceQ20zUre6ewWroqGnHNkEa-2Bp-2FCCCGIuWrIIyj9l7m1hwOulVvMePnsDyH-2F-2FmE6YJ0ilLrtY9p3Cca-2FfOHQijctzjvxJlHGjxtEa6L44bl4WJK2SmbluIu4AXizGAZzZ91zKFWvrs21RZ-2FlKVxJIcHzaE-3D
More information about the Swan-dev
mailing list