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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2019-08-12T10:28:05+02:00

core: restore alignment after replacing mem error logs

---

Modified: src/core/msg_translator.c

---

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

---

diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c
index 25f9cce01e..485fecac1c 100644
--- a/src/core/msg_translator.c
+++ b/src/core/msg_translator.c
@@ -2187,10 +2187,11 @@ char * build_req_buf_from_sip_req( struct sip_msg* msg,
                new_buf=(char*)pkg_malloc(new_len+1);
        if (new_buf==0){
                ser_error=E_OUT_OF_MEM;
-               if(unlikely(mode&BUILD_IN_SHM))
-                        SHM_MEM_ERROR;
-                else
-                        PKG_MEM_ERROR;
+               if(unlikely(mode&BUILD_IN_SHM)) {
+                       SHM_MEM_ERROR;
+               } else {
+                       PKG_MEM_ERROR;
+               }
                goto error00;
        }
 


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to