commit | ee86b0488332b7d863cfbe64298d86895d11ea05 | [log] [tgz] |
---|---|---|
author | Vadim Yanitskiy <axilirator@gmail.com> | Tue Sep 25 18:09:01 2018 +0700 |
committer | Harald Welte <laforge@gnumonks.org> | Sun Oct 21 12:56:54 2018 +0000 |
tree | ef2e424fed1d35eeb336b74122c144d2fd212a58 | |
parent | 6721144c80c1160e28a2da86b0f33e050fe9adaf [diff] [blame] |
libosmogsm/gsup.c: fix error code in osmo_gsup_encode() Missing (unset) type of to be encoded message is not a memory allocation failure (-ENOMEM), this is definitely a mistake. Change-Id: Ibbac18e2b68b765c17c2bc959c4c085037953a7f
diff --git a/src/gsm/gsup.c b/src/gsm/gsup.c index 9c2f817..18b3580 100644 --- a/src/gsm/gsup.c +++ b/src/gsm/gsup.c
@@ -535,7 +535,7 @@ /* generic part */ if(!gsup_msg->message_type) - return -ENOMEM; + return -EINVAL; msgb_v_put(msg, gsup_msg->message_type);