diff options
Diffstat (limited to 'src/plugins/peers/peers.c')
-rw-r--r-- | src/plugins/peers/peers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/peers/peers.c b/src/plugins/peers/peers.c index c224adca..2ec92848 100644 --- a/src/plugins/peers/peers.c +++ b/src/plugins/peers/peers.c | |||
@@ -93,7 +93,7 @@ static int collector(void * data, | |||
93 | } | 93 | } |
94 | found = YES; | 94 | found = YES; |
95 | } | 95 | } |
96 | FREE(haddress); | 96 | FREENONNULL(haddress); |
97 | FREE(have); | 97 | FREE(have); |
98 | } | 98 | } |
99 | } while ( (found == NO) && | 99 | } while ( (found == NO) && |
@@ -104,6 +104,8 @@ static int collector(void * data, | |||
104 | hostname = network_get_ip_as_string(address, | 104 | hostname = network_get_ip_as_string(address, |
105 | addr_len, | 105 | addr_len, |
106 | YES); | 106 | YES); |
107 | if (hostname == NULL) | ||
108 | hostname = "NAT"; | ||
107 | /* get flag */ | 109 | /* get flag */ |
108 | flagBuf = NULL; | 110 | flagBuf = NULL; |
109 | ledBuf = NULL; | 111 | ledBuf = NULL; |