diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-10-01 12:35:13 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-10-01 12:35:13 +0200 |
commit | 89ba3f1b4f1688e56a34adc4ae0b24971ba6649c (patch) | |
tree | f9d4b435e0fa6610d7c0cbdd5cf33ca439f32dc5 /src/repo.c | |
parent | e81685bba0d9f1d6a28c0375f118df57667bedf0 (diff) |
src: inet_aton() returns 0 on error
not < 0, fix this.
Diffstat (limited to 'src/repo.c')
-rw-r--r-- | src/repo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |