From 9e30117cac36e4b4a4df2467174ebec85348b03b Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Tue, 9 Dec 2014 11:44:28 +0100 Subject: [PATCH] miniupnpd/upnphttp.c: fix ec94c5663fe80dd6ceea895c73e2be66b1ef6bf4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit thanks to Stephen Röttger --- miniupnpd/upnphttp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/miniupnpd/upnphttp.c b/miniupnpd/upnphttp.c index 1025e5d..c642721 100644 --- a/miniupnpd/upnphttp.c +++ b/miniupnpd/upnphttp.c @@ -1,4 +1,4 @@ -/* $Id: upnphttp.c,v 1.95 2014/12/09 10:38:02 nanard Exp $ */ +/* $Id: upnphttp.c,v 1.96 2014/12/09 10:43:35 nanard Exp $ */ /* Project : miniupnp * Website : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * Author : Thomas Bernard @@ -1091,9 +1091,10 @@ BuildResp2_upnphttp(struct upnphttp * h, int respcode, const char * body, int bodylen) { int r = BuildHeader_upnphttp(h, respcode, respmsg, bodylen); - if(body && (r >= 0)) + if(body && (r >= 0)) { memcpy(h->res_buf + h->res_buflen, body, bodylen); - h->res_buflen += bodylen; + h->res_buflen += bodylen; + } } /* responding 200 OK ! */