Skip to content

Commit

Permalink
smsops: free after error log message printing a field
Browse files Browse the repository at this point in the history
(cherry picked from commit c571efe)
  • Loading branch information
miconda committed Nov 19, 2018
1 parent 0532b6f commit 1333340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/smsops/smsops_impl.c
Expand Up @@ -564,9 +564,9 @@ int decode_3gpp_sms(struct sip_msg *msg) {

// Check for malicious length, which might cause buffer overflow
if(udh_read + ie->data.len + 2 /* two octets are read so far */ > udh_len) {
pkg_free(ie);
LM_ERR("IE Lenght for IE id %d is bigger than the remaining User-Data element!\n",
ie->identifier);
pkg_free(ie);
return -1;
}

Expand Down

0 comments on commit 1333340

Please sign in to comment.