fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-hlr/+/28424 )
Change subject: db_auc: hexparse_stmt(): check value returned by osmo_hexparse() ......................................................................
db_auc: hexparse_stmt(): check value returned by osmo_hexparse()
Change-Id: I78bb3aff9dd57a38278bb34113ea764e0a54c439 Fixes: CID#272997 --- M src/db_auc.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/24/28424/1
diff --git a/src/db_auc.c b/src/db_auc.c index 975eb2d..44733d6 100644 --- a/src/db_auc.c +++ b/src/db_auc.c @@ -95,8 +95,8 @@ LOGAUC(imsi, LOGL_ERROR, "Error reading %s\n", col_name); return -EIO; } - osmo_hexparse((void *)text, dst, dst_len); - return 0; + + return osmo_hexparse((void *)text, dst, dst_len) == col_len; }
/* obtain the authentication data for a given imsi