mirror of
https://github.com/sheumann/hush.git
synced 2025-01-11 08:29:54 +00:00
nc: small code shrink
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
4ea37d62c2
commit
2ea73b513d
@ -428,8 +428,7 @@ create new one, and bind() it. TODO */
|
|||||||
|
|
||||||
rr = getsockopt(netfd, IPPROTO_IP, IP_OPTIONS, optbuf, &x);
|
rr = getsockopt(netfd, IPPROTO_IP, IP_OPTIONS, optbuf, &x);
|
||||||
if (rr >= 0 && x) { /* we've got options, lessee em... */
|
if (rr >= 0 && x) { /* we've got options, lessee em... */
|
||||||
bin2hex(bigbuf_net, optbuf, x);
|
*bin2hex(bigbuf_net, optbuf, x) = '\0';
|
||||||
bigbuf_net[2*x] = '\0';
|
|
||||||
fprintf(stderr, "IP options: %s\n", bigbuf_net);
|
fprintf(stderr, "IP options: %s\n", bigbuf_net);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user