[sr-dev] git:master:832f7a9b: modules/ims_auth: return null instead of integer

jaybeepee jason.penton at gmail.com
Tue Jun 7 08:42:30 CEST 2016


Module: kamailio
Branch: master
Commit: 832f7a9b063ec2afe2d360417b0413fadaf9e08c
URL: https://github.com/kamailio/kamailio/commit/832f7a9b063ec2afe2d360417b0413fadaf9e08c

Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2016-06-07T08:42:15+02:00

modules/ims_auth: return null instead of integer

---

Modified: modules/ims_auth/pvt_message.c

---

Diff:  https://github.com/kamailio/kamailio/commit/832f7a9b063ec2afe2d360417b0413fadaf9e08c.diff
Patch: https://github.com/kamailio/kamailio/commit/832f7a9b063ec2afe2d360417b0413fadaf9e08c.patch

---

diff --git a/modules/ims_auth/pvt_message.c b/modules/ims_auth/pvt_message.c
index fc397f5..ba8a53b 100644
--- a/modules/ims_auth/pvt_message.c
+++ b/modules/ims_auth/pvt_message.c
@@ -101,7 +101,7 @@ struct sip_msg* get_request_from_tx(struct cell *t) {
                 if (_pv_treq.buf == NULL) {
                     LM_ERR("no more pkg\n");
                     _pv_treq.buf_size = 0;
-                    return -1;
+                    return 0;
                 }
             }
             if (_pv_treq.tmsgp)
@@ -122,7 +122,7 @@ struct sip_msg* get_request_from_tx(struct cell *t) {
                 _pv_treq.buf = NULL;
                 _pv_treq.tmsgp = NULL;
                 _pv_treq.T = NULL;
-                return -1;
+                return 0;
             }
         }
 




More information about the sr-dev mailing list