commit | 89a72e1c7f25b2e77619e6277f76e7603e3465f5 | [log] [tgz] |
---|---|---|
author | Jouni Malinen <j@w1.fi> | Mon Aug 31 16:17:31 2015 +0300 |
committer | Jouni Malinen <j@w1.fi> | Mon Aug 31 17:25:20 2015 +0300 |
tree | 1c823b9f431bb827ffc4fb0c3d807135166c4f44 | |
parent | 3bde8280984b3a289a94abad34b81520089e9905 [diff] |
WPS: Remove trailing CR from subscription callback URLs This cleans up the debug log a bit. Signed-off-by: Jouni Malinen <j@w1.fi>
diff --git a/src/wps/wps_upnp_web.c b/src/wps/wps_upnp_web.c index 3ec48fc..d5b0b5b 100644 --- a/src/wps/wps_upnp_web.c +++ b/src/wps/wps_upnp_web.c
@@ -1003,6 +1003,8 @@ 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 */