summaryrefslogtreecommitdiffstats
path: root/osmo-gsup-hlr
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-05-05 16:50:39 +0200
committerHarald Welte <laforge@gnumonks.org>2016-05-05 16:50:39 +0200
commit9239c1a61584e40a58f869a5c97dc3ab3465a339 (patch)
treeb91466b11d004782c0969b469e49927a63d3c398 /osmo-gsup-hlr
parent06db912aaa4aac0665ad2180c608d4b216dfd9e1 (diff)
State number of auth vectors in SAI response
Diffstat (limited to 'osmo-gsup-hlr')
-rw-r--r--osmo-gsup-hlr/src/hlr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/osmo-gsup-hlr/src/hlr.c b/osmo-gsup-hlr/src/hlr.c
index 4fc072f..f60b24b 100644
--- a/osmo-gsup-hlr/src/hlr.c
+++ b/osmo-gsup-hlr/src/hlr.c
@@ -47,7 +47,6 @@ static int rx_send_auth_info(struct osmo_gsup_conn *conn,
/* initialize return message structure */
memset(&gsup_out, 0, sizeof(gsup_out));
- gsup_out.message_type = OSMO_GSUP_MSGT_SEND_AUTH_INFO_RESULT;
memcpy(&gsup_out.imsi, &gsup->imsi, sizeof(gsup_out.imsi));
rc = db_get_auc(g_dbc, gsup->imsi, gsup_out.auth_vectors,
@@ -59,6 +58,9 @@ static int rx_send_auth_info(struct osmo_gsup_conn *conn,
} else if (rc == 0) {
gsup_out.message_type = OSMO_GSUP_MSGT_SEND_AUTH_INFO_ERROR;
gsup_out.cause = GMM_CAUSE_IMSI_UNKNOWN;
+ } else {
+ gsup_out.message_type = OSMO_GSUP_MSGT_SEND_AUTH_INFO_RESULT;
+ gsup_out.num_auth_vectors = rc;
}
msg_out = msgb_alloc_headroom(1024+16, 16, "GSUP AUC response");