diff options
Diffstat (limited to 'osmo-gsup-hlr/src/hlr.c')
-rw-r--r-- | osmo-gsup-hlr/src/hlr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/osmo-gsup-hlr/src/hlr.c b/osmo-gsup-hlr/src/hlr.c index 504c8d2..4fc072f 100644 --- a/osmo-gsup-hlr/src/hlr.c +++ b/osmo-gsup-hlr/src/hlr.c @@ -53,8 +53,12 @@ static int rx_send_auth_info(struct osmo_gsup_conn *conn, rc = db_get_auc(g_dbc, gsup->imsi, gsup_out.auth_vectors, ARRAY_SIZE(gsup_out.auth_vectors), NULL /* gsup->rand_auts */, gsup->auts); - if (rc <= 0) { + if (rc < 0) { + gsup_out.message_type = OSMO_GSUP_MSGT_SEND_AUTH_INFO_ERROR; + gsup_out.cause = GMM_CAUSE_NET_FAIL; + } else if (rc == 0) { gsup_out.message_type = OSMO_GSUP_MSGT_SEND_AUTH_INFO_ERROR; + gsup_out.cause = GMM_CAUSE_IMSI_UNKNOWN; } msg_out = msgb_alloc_headroom(1024+16, 16, "GSUP AUC response"); |