Skip to content

Commit f6fa361

Browse files
auth: Fix condition for AV retrieval from CacheDB
1 parent 701bc91 commit f6fa361

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/auth_aka/aka_av_mgm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ struct aka_av *aka_cdb_fetch_av(str *impu, str *impi, str *nonce)
305305
{FILE *_df = fopen("/tmp/debug.log", "a"); if(_df){fprintf(_df, "{\"hypothesisId\":\"H4\",\"location\":\"aka_av_mgm.c:aka_cdb_fetch_av\",\"message\":\"cdb_get_result\",\"data\":{\"get_ret\":%d,\"value_s\":\"%p\",\"value_len\":%d,\"key\":\"%.*s\"}}\n", get_ret, (void*)value.s, value.len, key.len, key.s); fclose(_df);}}
306306
// #endregion
307307

308-
if (get_ret <= 0 || value.s == NULL) {
308+
if (get_ret < 0 || value.s == NULL) {
309309
LM_DBG("AV not found in cachedb for key=%.*s\n", key.len, key.s);
310310
pkg_free(key.s);
311311
return NULL;

0 commit comments

Comments
 (0)