summaryrefslogtreecommitdiffstats
path: root/src/repo.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-10-01 12:35:13 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-10-01 12:35:13 +0200
commit89ba3f1b4f1688e56a34adc4ae0b24971ba6649c (patch)
treef9d4b435e0fa6610d7c0cbdd5cf33ca439f32dc5 /src/repo.c
parente81685bba0d9f1d6a28c0375f118df57667bedf0 (diff)
src: inet_aton() returns 0 on error
not < 0, fix this.
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;
}