[sr-dev] git:master:099e784a: core: udp server - continue when failing to print debug with received chars

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


Module: kamailio
Branch: master
Commit: 099e784a250581d0c124d6110d3953bfc0716930
URL: https://github.com/kamailio/kamailio/commit/099e784a250581d0c124d6110d3953bfc0716930

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

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

- reported by GH #1403

---

Modified: src/core/udp_server.c

---

Diff:  https://github.com/kamailio/kamailio/commit/099e784a250581d0c124d6110d3953bfc0716930.diff
Patch: https://github.com/kamailio/kamailio/commit/099e784a250581d0c124d6110d3953bfc0716930.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