nat: Store the IMSI inside the SCCP Connection data

Store the IMSI for the connections that we are tracking,
it will be freed when the normnal SCCP connection is freed.
This commit is contained in:
Holger Hans Peter Freyther 2010-09-29 01:00:46 +08:00
parent babb52873e
commit 4a98ae9a71
2 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,7 @@ struct sccp_connections {
int con_type;
int con_local;
int imsi_checked;
char *imsi;
/*
* audio handling. Remember if we have ever send a CRCX,

View File

@ -469,6 +469,7 @@ static int _dt_check_id_resp(struct bsc_connection *bsc,
ret = auth_imsi(bsc, mi_string);
con->imsi_checked = 1;
con->imsi = talloc_strdup(con, mi_string);
return ret;
}