aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/peers/peers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/peers/peers.c')
-rw-r--r--src/plugins/peers/peers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/peers/peers.c b/src/plugins/peers/peers.c
index d9c70248..37e61b2d 100644
--- a/src/plugins/peers/peers.c
+++ b/src/plugins/peers/peers.c
@@ -108,7 +108,8 @@ static int collector(void * data,
108 (0 == strcmp(cc, "gov")) || 108 (0 == strcmp(cc, "gov")) ||
109 (0 == strcmp(cc, "mil")) ) 109 (0 == strcmp(cc, "mil")) )
110 cc = "us"; 110 cc = "us";
111 if (strlen(cc) > 2) 111 if ( (cc != NULL) &&
112 (strlen(cc) > 2) )
112 cc = NULL; 113 cc = NULL;
113 if (cc != NULL) { 114 if (cc != NULL) {
114 cc = STRDUP(cc); 115 cc = STRDUP(cc);