projects
/
libeap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
WPS: Limit WPS ER event_id < 2^31 bits to avoid issues with atoi()
[libeap.git]
/
src
/
wps
/
wps_er.c
diff --git
a/src/wps/wps_er.c
b/src/wps/wps_er.c
index
9c47aaf
..
6d7455e
100644
(file)
--- a/
src/wps/wps_er.c
+++ b/
src/wps/wps_er.c
@@
-1172,6
+1172,8
@@
wps_er_init(struct wps_context *wps, const char *ifname, const char *filter)
wps_er_deinit(er, NULL, NULL);
return NULL;
}
+ /* Limit event_id to < 32 bits to avoid issues with atoi() */
+ er->event_id &= 0x0fffffff;
if (filter) {
if (inet_aton(filter, &er->filter_addr) == 0) {