aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-10-26 09:54:20 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-26 12:55:46 (GMT)
commit331837610106d4497d8964f86d0ee5ec848d7742 (patch)
treec0029aeb314ccb5ae5e47143989beaecf31ba415 /src/p2p/p2p_i.h
parent0f0120148ac613fb9b570b8686c7e8565fa6503a (diff)
downloadhostap-331837610106d4497d8964f86d0ee5ec848d7742.zip
hostap-331837610106d4497d8964f86d0ee5ec848d7742.tar.gz
hostap-331837610106d4497d8964f86d0ee5ec848d7742.tar.bz2
Add explicit buffer length checks for p2p_build_wps_ie()
Even though the length of this buffer is based only on locally configured information, it is cleaner to include explicit buffer room validation steps when adding the attributes into the buffer. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index 56056fa..3631abd 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -633,8 +633,8 @@ void p2p_buf_add_noa(struct wpabuf *buf, u8 noa_index, u8 opp_ps, u8 ctwindow,
void p2p_buf_add_ext_listen_timing(struct wpabuf *buf, u16 period,
u16 interval);
void p2p_buf_add_p2p_interface(struct wpabuf *buf, struct p2p_data *p2p);
-void p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, int pw_id,
- int all_attr);
+int p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, int pw_id,
+ int all_attr);
/* p2p_sd.c */
struct p2p_sd_query * p2p_pending_sd_req(struct p2p_data *p2p,