mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
fix broken formatting
This commit is contained in:
parent
9cccc18141
commit
3a5ed56803
@ -39,9 +39,9 @@ unsigned short bb_lookup_port(const char *port, unsigned short default_port)
|
|||||||
if (errno != 0 || *endptr!='\0' || endptr==port || port_long < 0 || port_long > 65535) {
|
if (errno != 0 || *endptr!='\0' || endptr==port || port_long < 0 || port_long > 65535) {
|
||||||
struct servent *tserv = getservbyname(port, "tcp");
|
struct servent *tserv = getservbyname(port, "tcp");
|
||||||
if (tserv) {
|
if (tserv) {
|
||||||
port_nr = tserv->s_port;
|
port_nr = tserv->s_port;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
port_nr = htons(port_long);
|
port_nr = htons(port_long);
|
||||||
}
|
}
|
||||||
errno = old_errno;
|
errno = old_errno;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user