[netperf-dev] netperf4 commit notice r190 - trunk/src
raj at netperf.org
raj at netperf.org
Thu Jun 29 18:06:52 PDT 2006
Author: raj
Date: 2006-06-29 18:06:50 -0700 (Thu, 29 Jun 2006)
New Revision: 190
Modified:
trunk/src/netlib.c
Log:
fix a couple more g_fprintf SIGSEGV's on Solaris
Modified: trunk/src/netlib.c
===================================================================
--- trunk/src/netlib.c 2006-06-30 00:25:00 UTC (rev 189)
+++ trunk/src/netlib.c 2006-06-30 01:06:50 UTC (rev 190)
@@ -1085,8 +1085,12 @@
struct addrinfo *temp;
temp=info;
- fprintf(dumploc, "getaddrinfo returned the following for host '%s' ", host);
- fprintf(dumploc, "port '%s' ", port);
+ g_fprintf(dumploc,
+ "getaddrinfo returned the following for host '%s' ",
+ host ? (char *)host : "n/a");
+ g_fprintf(dumploc,
+ "port '%s' ",
+ port ? (char *)port : "n/a");
fprintf(dumploc, "family %d\n", family);
while (temp) {
/* I was under the impression that g_fprintf would be kind with
@@ -1757,8 +1761,8 @@
if (debug) {
fprintf(where,
"establish_listen: host '%s' service '%s' af %d socklen %d\n",
- hostname,
- service,
+ hostname ? hostname : "n/a",
+ service ? service : "n/a",
af,
len);
fflush(where);
More information about the netperf-dev
mailing list