aboutsummaryrefslogtreecommitdiff
path: root/src/wps/wps_upnp_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wps/wps_upnp_event.c')
-rw-r--r--src/wps/wps_upnp_event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wps/wps_upnp_event.c b/src/wps/wps_upnp_event.c
index 94aae7542b2e..fd225b06c0c6 100644
--- a/src/wps/wps_upnp_event.c
+++ b/src/wps/wps_upnp_event.c
@@ -147,7 +147,8 @@ static struct wpabuf * event_build_message(struct wps_event_ *e)
struct wpabuf *buf;
char *b;
- buf = wpabuf_alloc(1000 + wpabuf_len(e->data));
+ buf = wpabuf_alloc(1000 + os_strlen(e->addr->path) +
+ wpabuf_len(e->data));
if (buf == NULL)
return NULL;
wpabuf_printf(buf, "NOTIFY %s HTTP/1.1\r\n", e->addr->path);