]> The Tcpdump Group git mirrors - libpcap/commitdiff
In the fatal error code path, addrinfo either was never allocated or was freed.
authorGuy Harris <[email protected]>
Sun, 21 Jan 2018 18:29:35 +0000 (10:29 -0800)
committerGuy Harris <[email protected]>
Sun, 21 Jan 2018 18:29:35 +0000 (10:29 -0800)
This should fix Coverity CID 1420562.

rpcapd/daemon.c

index 59a9863343f77d589a9cabe706efe8d322ae17ab..e9a5dc175aefbcffe68af87f25896fcb08bdd3c9 100755 (executable)
@@ -1844,9 +1844,6 @@ fatal_error:
        //
        *sessionp = NULL;
 
-       if (addrinfo)
-               freeaddrinfo(addrinfo);
-
        if (*have_thread)
        {
 #ifdef _WIN32