Fix a check issue, from Quentin Rameau

This commit is contained in:
Solene Rapenne 2021-02-28 17:31:08 +01:00
parent b88a0f9c82
commit 517c24f322
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -22,7 +22,7 @@ int main(void){
status = getnameinfo(&sock, slen, host, sizeof host, port, sizeof port,
NI_NUMERICHOST|NI_NUMERICSERV);
if(status > 0)
if(status != 0)
{
syslog(LOG_DAEMON, "getnameinfo error");
exit(1);