summaryrefslogtreecommitdiffstats
path: root/src/repo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/repo.c')
-rw-r--r--src/repo.c2
1 files changed, 1 insertions, 1 deletions
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;
}