aboutsummaryrefslogtreecommitdiff
path: root/networking/nc_bloaty.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/nc_bloaty.c')
-rw-r--r--networking/nc_bloaty.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c
index 0d1071499..30abb3c1c 100644
--- a/networking/nc_bloaty.c
+++ b/networking/nc_bloaty.c
@@ -278,7 +278,7 @@ static void dolisten(void)
278 rr = getsockname(netfd, &ouraddr->sa, &ouraddr->len); 278 rr = getsockname(netfd, &ouraddr->sa, &ouraddr->len);
279 if (rr < 0) 279 if (rr < 0)
280 bb_perror_msg_and_die("getsockname after bind"); 280 bb_perror_msg_and_die("getsockname after bind");
281 addr = xmalloc_sockaddr2dotted(&ouraddr->sa, ouraddr->len); 281 addr = xmalloc_sockaddr2dotted(&ouraddr->sa);
282 fprintf(stderr, "listening on %s ...\n", addr); 282 fprintf(stderr, "listening on %s ...\n", addr);
283 free(addr); 283 free(addr);
284 } 284 }
@@ -341,7 +341,7 @@ create new one, and bind() it. TODO */
341 /* nc 1.10 bails out instead, and its error message 341 /* nc 1.10 bails out instead, and its error message
342 * is not suppressed by o_verbose */ 342 * is not suppressed by o_verbose */
343 if (o_verbose) { 343 if (o_verbose) {
344 char *remaddr = xmalloc_sockaddr2dotted(&remend.sa, remend.len); 344 char *remaddr = xmalloc_sockaddr2dotted(&remend.sa);
345 bb_error_msg("connect from wrong ip/port %s ignored", remaddr); 345 bb_error_msg("connect from wrong ip/port %s ignored", remaddr);
346 free(remaddr); 346 free(remaddr);
347 } 347 }
@@ -393,9 +393,9 @@ create new one, and bind() it. TODO */
393 accept the connection and then reject undesireable ones by closing. 393 accept the connection and then reject undesireable ones by closing.
394 In other words, we need a TCP MSG_PEEK. */ 394 In other words, we need a TCP MSG_PEEK. */
395 /* bbox: removed most of it */ 395 /* bbox: removed most of it */
396 lcladdr = xmalloc_sockaddr2dotted(&ouraddr->sa, ouraddr->len); 396 lcladdr = xmalloc_sockaddr2dotted(&ouraddr->sa);
397 remaddr = xmalloc_sockaddr2dotted(&remend.sa, remend.len); 397 remaddr = xmalloc_sockaddr2dotted(&remend.sa);
398 remhostname = o_nflag ? remaddr : xmalloc_sockaddr2host(&remend.sa, remend.len); 398 remhostname = o_nflag ? remaddr : xmalloc_sockaddr2host(&remend.sa);
399 fprintf(stderr, "connect to %s from %s (%s)\n", 399 fprintf(stderr, "connect to %s from %s (%s)\n",
400 lcladdr, remhostname, remaddr); 400 lcladdr, remhostname, remaddr);
401 free(lcladdr); 401 free(lcladdr);
@@ -796,7 +796,7 @@ int nc_main(int argc, char **argv)
796 796
797 remend = *themaddr; 797 remend = *themaddr;
798 if (o_verbose) 798 if (o_verbose)
799 themdotted = xmalloc_sockaddr2dotted(&themaddr->sa, themaddr->len); 799 themdotted = xmalloc_sockaddr2dotted(&themaddr->sa);
800 800
801 x = connect_w_timeout(netfd); 801 x = connect_w_timeout(netfd);
802 if (o_zero && x == 0 && o_udpmode) /* if UDP scanning... */ 802 if (o_zero && x == 0 && o_udpmode) /* if UDP scanning... */