]> The Tcpdump Group git mirrors - libpcap/commitdiff
Don't log the error buffer before returning.
authorGuy Harris <[email protected]>
Sat, 12 Jan 2019 23:08:17 +0000 (15:08 -0800)
committerGuy Harris <[email protected]>
Sat, 12 Jan 2019 23:08:17 +0000 (15:08 -0800)
If there was an error, a message should already have been logged at
priority LOGPRIO_ERROR; logging it again at LOGPRIO_DEBUG isn't useful.

rpcapd/daemon.c

index eaf276e1558c0b35d391c4b11fac44e5b8bbc14a..00717c93bd518470d3a1d7cc473ab1648d39a896 100644 (file)
@@ -1109,7 +1109,6 @@ end:
 
        // Print message and return
        rpcapd_log(LOGPRIO_DEBUG, "I'm exiting from the child loop");
-       rpcapd_log(LOGPRIO_DEBUG, "%s", errbuf);
 
        return client_told_us_to_close;
 }