gsm0407_is_duplicate(): Handle error ret of gsm0407_pdisc_ctr_bin()

Change-Id: If9525694bcbc5c6c0e622e899dd634dc11ed61c4
Fixes: Coverity CID#182702
This commit is contained in:
Harald Welte 2018-10-21 12:55:11 +02:00
parent 782ccec526
commit f6400737f9
1 changed files with 2 additions and 1 deletions

View File

@ -1397,7 +1397,8 @@ static bool gsm0407_is_duplicate(struct gsm_subscriber_connection *conn, struct
{
struct gsm48_hdr *gh;
uint8_t pdisc;
uint8_t n_sd, modulo, bin;
uint8_t n_sd, modulo;
int bin;
gh = msgb_l3(msg);
pdisc = gsm48_hdr_pdisc(gh);