From: Jouni Malinen Date: Mon, 31 Aug 2015 13:17:31 +0000 (+0300) Subject: WPS: Remove trailing CR from subscription callback URLs X-Git-Tag: hostap_2_5~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89a72e1c7f25b2e77619e6277f76e7603e3465f5;p=thirdparty%2Fhostap.git WPS: Remove trailing CR from subscription callback URLs This cleans up the debug log a bit. Signed-off-by: Jouni Malinen --- diff --git a/src/wps/wps_upnp_web.c b/src/wps/wps_upnp_web.c index 3ec48fc20..d5b0b5b26 100644 --- a/src/wps/wps_upnp_web.c +++ b/src/wps/wps_upnp_web.c @@ -1003,6 +1003,8 @@ static void web_connection_parse_subscribe(struct upnp_wps_device_sm *sm, ret = HTTP_INTERNAL_SERVER_ERROR; goto error; } + if (len > 0 && callback_urls[len - 1] == '\r') + callback_urls[len - 1] = '\0'; continue; } /* SID is only for renewal */