Module: kamailio
Branch: master
Commit: eeade03783181aacdf0115a61050ec964434a880
URL:
https://github.com/kamailio/kamailio/commit/eeade03783181aacdf0115a61050ec9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
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/eeade03783181aacdf0115a61050ec9…
Patch:
https://github.com/kamailio/kamailio/commit/eeade03783181aacdf0115a61050ec9…
---
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;
}