diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
commit | 08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 (patch) | |
tree | 0cfc4f0736babb895eb97a65c6defe632a0249c7 /net/ser/files/patch-modules__registrar__reply.c | |
parent | editors/fte: update to 20110708 (diff) |
Rename all patches that contain '::' as a path separator, and use
'__' instead.
Diffstat (limited to 'net/ser/files/patch-modules__registrar__reply.c')
-rw-r--r-- | net/ser/files/patch-modules__registrar__reply.c | 23 |
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; |