Fix a check issue, from Quentin Rameau
This commit is contained in:
parent
b88a0f9c82
commit
517c24f322
2
main.c
2
main.c
|
@ -22,7 +22,7 @@ int main(void){
|
||||||
|
|
||||||
status = getnameinfo(&sock, slen, host, sizeof host, port, sizeof port,
|
status = getnameinfo(&sock, slen, host, sizeof host, port, sizeof port,
|
||||||
NI_NUMERICHOST|NI_NUMERICSERV);
|
NI_NUMERICHOST|NI_NUMERICSERV);
|
||||||
if(status > 0)
|
if(status != 0)
|
||||||
{
|
{
|
||||||
syslog(LOG_DAEMON, "getnameinfo error");
|
syslog(LOG_DAEMON, "getnameinfo error");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in New Issue