Skip to content

Commit

Permalink
proto_smpp: Fix crash on startup
Browse files Browse the repository at this point in the history
(cherry picked from commit 990d18f)
(cherry picked from commit 6410440)
  • Loading branch information
liviuchircu committed Nov 4, 2020
1 parent 982b658 commit 914d38a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/proto_smpp/proto_smpp.c
Expand Up @@ -151,6 +151,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 914d38a

Please sign in to comment.