[sr-dev] git:master:eeade037: core: restore alignment after replacing mem error logs
Daniel-Constantin Mierla
miconda at gmail.com
Mon Aug 12 11:19:10 CEST 2019
Module: kamailio
Branch: master
Commit: eeade03783181aacdf0115a61050ec964434a880
URL: https://github.com/kamailio/kamailio/commit/eeade03783181aacdf0115a61050ec964434a880
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/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;
}
More information about the sr-dev
mailing list