diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-12-12 15:23:26 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-12-12 16:20:01 +0100 |
commit | 7672db33bd796d849419e8fcb170b4cfb3e41759 (patch) | |
tree | 4f063fe7a6c26760433150f516a86598313e919e /openbsc/src/utils | |
parent | 109583dacb87321350f13ed849c3416724cbcbec (diff) |
smpp_mirror: Initialize rc when cmd_id is not DELIVER_SM
Fixes: Coverity CID 1042369
Diffstat (limited to 'openbsc/src/utils')
-rw-r--r-- | openbsc/src/utils/smpp_mirror.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/utils/smpp_mirror.c b/openbsc/src/utils/smpp_mirror.c index 59e341d38..488c4a193 100644 --- a/openbsc/src/utils/smpp_mirror.c +++ b/openbsc/src/utils/smpp_mirror.c @@ -170,6 +170,8 @@ static int smpp_pdu_rx(struct esme *esme, struct msgb *msg) rc = smpp_handle_deliver(esme, msg); break; default: + LOGP(DSMPP, LOGL_NOTICE, "unhandled case %d\n", cmd_id); + rc = 0; break; } |