aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/tncc.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-10-02 17:22:17 (GMT)
committerJouni Malinen <j@w1.fi>2008-10-02 17:22:17 (GMT)
commitb43f7c34d28478aab3eeb9617119bb6ebf240938 (patch)
treeed973890f2ffd5c4c5712567c4617ef2abf86bcb /src/eap_peer/tncc.c
parentc908a9e5ae6bbc51607bd5c5123a126bf0bb0e3e (diff)
downloadhostap-b43f7c34d28478aab3eeb9617119bb6ebf240938.zip
hostap-b43f7c34d28478aab3eeb9617119bb6ebf240938.tar.gz
hostap-b43f7c34d28478aab3eeb9617119bb6ebf240938.tar.bz2
SoH: Add null termination for empty url in MS-Quarantine-State.
Diffstat (limited to 'src/eap_peer/tncc.c')
-rw-r--r--src/eap_peer/tncc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eap_peer/tncc.c b/src/eap_peer/tncc.c
index bf26917..b3de4f0 100644
--- a/src/eap_peer/tncc.c
+++ b/src/eap_peer/tncc.c
@@ -1305,8 +1305,8 @@ static struct wpabuf * tncc_build_soh(void)
wpabuf_put_be16(buf, 1); /* Flags: ExtState=0, f=0, qState=1 */
wpabuf_put_be32(buf, 0xffffffff); /* ProbTime (hi) */
wpabuf_put_be32(buf, 0xffffffff); /* ProbTime (lo) */
- wpabuf_put_be16(buf, 0); /* urlLenInBytes */
- /* followed by url */
+ wpabuf_put_be16(buf, 1); /* urlLenInBytes */
+ wpabuf_put_u8(buf, 0); /* null termination for the url */
/* MS-Machine-Inventory-Ex */
wpabuf_put_u8(buf, SSOH_MS_MACHINE_INVENTORY_EX);