projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bde828
)
WPS: Remove trailing CR from subscription callback URLs
author
Jouni Malinen
<j@w1.fi>
Mon, 31 Aug 2015 13:17:31 +0000
(16:17 +0300)
committer
Jouni Malinen
<j@w1.fi>
Mon, 31 Aug 2015 14:25:20 +0000
(17:25 +0300)
This cleans up the debug log a bit.
Signed-off-by: Jouni Malinen <j@w1.fi>
src/wps/wps_upnp_web.c
patch
|
blob
|
history
diff --git
a/src/wps/wps_upnp_web.c
b/src/wps/wps_upnp_web.c
index
3ec48fc
..
d5b0b5b
100644
(file)
--- 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 */