... | ... |
@@ -26,10 +26,6 @@ int err2reason_phrase( |
26 | 26 |
char *error_txt; |
27 | 27 |
|
28 | 28 |
switch( ser_error ) { |
29 |
- case E_OUT_OF_MEM: |
|
30 |
- error_txt="Excuse me I ran out of memory"; |
|
31 |
- *sip_error=500; |
|
32 |
- break; |
|
33 | 29 |
case E_SEND: |
34 | 30 |
error_txt="Unfortunately error on sending to next hop occured"; |
35 | 31 |
*sip_error=-ser_error; |
... | ... |
@@ -62,6 +58,13 @@ int err2reason_phrase( |
62 | 58 |
error_txt="Forking capacity exceeded"; |
63 | 59 |
*sip_error=-E_BAD_SERVER; |
64 | 60 |
break; |
61 |
+ case E_OUT_OF_MEM: |
|
62 |
+ /* dont disclose lack of mem in release mode */ |
|
63 |
+#ifdef DEBUG |
|
64 |
+ error_txt="Excuse me I ran out of memory"; |
|
65 |
+ *sip_error=500; |
|
66 |
+ break; |
|
67 |
+#endif |
|
65 | 68 |
default: |
66 | 69 |
error_txt="I'm terribly sorry, server error occured"; |
67 | 70 |
*sip_error=500; |