mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
src/sniffer.c: guard against null arguments to TraceSetNamedServer(), to eliminate -Werror=format-overflow= warnings from gcc.
This commit is contained in:
@@ -992,7 +992,10 @@ static void TraceSetNamedServer(const char* name,
|
|||||||
if (TraceOn) {
|
if (TraceOn) {
|
||||||
fprintf(TraceFile, "\tTrying to install a new Sniffer Server with\n");
|
fprintf(TraceFile, "\tTrying to install a new Sniffer Server with\n");
|
||||||
fprintf(TraceFile, "\tname: %s, server: %s, port: %d, keyFile: %s\n",
|
fprintf(TraceFile, "\tname: %s, server: %s, port: %d, keyFile: %s\n",
|
||||||
name, srv, port, keyFile);
|
name ? name : "",
|
||||||
|
srv ? srv : "",
|
||||||
|
port,
|
||||||
|
keyFile ? keyFile : "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user