aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-08-31 13:17:31 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-31 14:25:20 (GMT)
commit89a72e1c7f25b2e77619e6277f76e7603e3465f5 (patch)
tree1c823b9f431bb827ffc4fb0c3d807135166c4f44 /src
parent3bde8280984b3a289a94abad34b81520089e9905 (diff)
downloadhostap-89a72e1c7f25b2e77619e6277f76e7603e3465f5.zip
hostap-89a72e1c7f25b2e77619e6277f76e7603e3465f5.tar.gz
hostap-89a72e1c7f25b2e77619e6277f76e7603e3465f5.tar.bz2
WPS: Remove trailing CR from subscription callback URLs
This cleans up the debug log a bit. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/wps/wps_upnp_web.c2
1 files changed, 2 insertions, 0 deletions
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 @@ 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 */