Skip to content

Commit

Permalink
proto_smpp: Fix crash on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Jul 8, 2020
1 parent 24f9e7b commit 990d18f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/proto_smpp/proto_smpp.c
Expand Up @@ -157,6 +157,12 @@ static int mod_init(void)
LM_INFO("initializing SMPP protocol\n");

init_db_url(db_url, 0 /* cannot be null */);

if (!smpp_outbound_uri.s) {
LM_ERR("missing modparam: 'smpp_outbound_uri'\n");
return -1;
}

smpp_outbound_uri.len = strlen(smpp_outbound_uri.s);

/* if we don't have a listener, we won't be able to connect, or send
Expand Down

0 comments on commit 990d18f

Please sign in to comment.