From 89ba3f1b4f1688e56a34adc4ae0b24971ba6649c Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 1 Oct 2024 12:35:13 +0200 Subject: src: inet_aton() returns 0 on error not < 0, fix this. --- src/repo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repo.c') diff --git a/src/repo.c b/src/repo.c index d2b55cb..362a55e 100644 --- a/src/repo.c +++ b/src/repo.c @@ -91,7 +91,7 @@ int og_repo_list(struct list_head *repo_list) name = dbi_result_get_string(result, "nombrerepositorio"); alias = dbi_result_get_ulonglong(result, "alias"); - if (inet_aton(ip, &addr) < 0) { + if (!inet_aton(ip, &addr)) { syslog(LOG_ERR, "malformed IP in repo %s\n", name); goto err_repo_list; } -- cgit v1.2.3-18-g5258