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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@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/1e4bf66d37afcded52fcaa2a0dd61a87bb1f2c67.diff
Patch: 
https://github.com/kamailio/kamailio/commit/1e4bf66d37afcded52fcaa2a0dd61a87bb1f2c67.patch

---

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;

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to