[sr-dev] git:5.1:d07ecc13: core: udp server - continue when failing to print debug with received chars

Daniel-Constantin Mierla miconda at gmail.com
Wed Jan 17 22:50:19 CET 2018


Module: kamailio
Branch: 5.1
Commit: d07ecc133d297adfc9a791f1d8eecf3e7250cbf7
URL: https://github.com/kamailio/kamailio/commit/d07ecc133d297adfc9a791f1d8eecf3e7250cbf7

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-01-17T22:49:58+01:00

core: udp server - continue when failing to print debug with received chars

- reported by GH #1403

(cherry picked from commit 099e784a250581d0c124d6110d3953bfc0716930)

---

Modified: src/core/udp_server.c

---

Diff:  https://github.com/kamailio/kamailio/commit/d07ecc133d297adfc9a791f1d8eecf3e7250cbf7.diff
Patch: https://github.com/kamailio/kamailio/commit/d07ecc133d297adfc9a791f1d8eecf3e7250cbf7.patch

---

diff --git a/src/core/udp_server.c b/src/core/udp_server.c
index 3d54c5a9a6..def3ac1861 100644
--- a/src/core/udp_server.c
+++ b/src/core/udp_server.c
@@ -483,7 +483,7 @@ int udp_rcv_loop()
 					if(l<0 || l>=6) {
 						LM_ERR("print buffer building failed (%d/%d/%d)\n",
 								l, j, i);
-						goto error;
+						continue; /* skip it */
 					}
 					j += l;
 				}




More information about the sr-dev mailing list