Module: kamailio
Branch: master
Commit: 1e4bf66d37afcded52fcaa2a0dd61a87bb1f2c67
URL:
https://github.com/kamailio/kamailio/commit/1e4bf66d37afcded52fcaa2a0dd61a8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-10-31T18:35:06+01:00
core: error - better message for E_OUT_OF_MEM
---
Modified: src/core/error.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1e4bf66d37afcded52fcaa2a0dd61a8…
Patch:
https://github.com/kamailio/kamailio/commit/1e4bf66d37afcded52fcaa2a0dd61a8…
---
diff --git a/src/core/error.c b/src/core/error.c
index 1bad7dd3d70..0b7e3b6848d 100644
--- a/src/core/error.c
+++ b/src/core/error.c
@@ -108,12 +108,10 @@ int err2reason_phrase(int int_error, /* current internal error */
break;
case E_OUT_OF_MEM:
- /* don't disclose lack of mem in release mode */
-#ifdef EXTRA_DEBUG
- error_txt = "Excuse me I ran out of memory";
+ error_txt = "Internal processing error";
*sip_error = 500;
break;
-#endif
+
case E_OK:
error_txt = "No error";
*sip_error = 500;