summaryrefslogtreecommitdiff
path: root/net/ser/files/patch-modules__registrar__reply.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ser/files/patch-modules__registrar__reply.c')
-rw-r--r--net/ser/files/patch-modules__registrar__reply.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/net/ser/files/patch-modules__registrar__reply.c b/net/ser/files/patch-modules__registrar__reply.c
new file mode 100644
index 000000000000..f48757ecf6ce
--- /dev/null
+++ b/net/ser/files/patch-modules__registrar__reply.c
@@ -0,0 +1,23 @@
+
+$FreeBSD$
+
+--- modules/registrar/reply.c.orig
++++ modules/registrar/reply.c
+@@ -314,6 +314,7 @@
+ long code;
+ char* msg = MSG_200; /* makes gcc shut up */
+ char* buf;
++ int result;
+
+ if (contact.data_len > 0) {
+ add_lump_rpl( _m, contact.buf, contact.data_len, LUMP_RPL_HDR|LUMP_RPL_NODUP|LUMP_RPL_NOFREE);
+@@ -347,7 +348,8 @@
+ }
+ }
+
+- if (sl_reply(_m, (char*)code, msg) == -1) {
++ result = (use_tm != 0) ? tmb.t_reply(_m, code, msg) : sl_reply(_m, (char*)code, msg);
++ if (result == -1) {
+ LOG(L_ERR, "send_reply(): Error while sending %ld %s\n", code, msg);
+ return -1;
+ } else return 0;