[RFC 10/34] NAN: Fix SDA parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After reading the ctrl, the pointer wasn't advanced. Fix it.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@xxxxxxxxx>
---
 src/common/nan_de.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/nan_de.c b/src/common/nan_de.c
index 1d782dc2aa..4a918661f6 100644
--- a/src/common/nan_de.c
+++ b/src/common/nan_de.c
@@ -1107,7 +1107,7 @@ static void nan_de_rx_sda(struct nan_de *de, const u8 *peer_addr, const u8 *a3,
 	sda += NAN_SERVICE_ID_LEN;
 	instance_id = *sda++;
 	req_instance_id = *sda++;
-	ctrl = *sda;
+	ctrl = *sda++;
 	type = ctrl & NAN_SRV_CTRL_TYPE_MASK;
 	wpa_printf(MSG_DEBUG,
 		   "NAN: SDA - Service ID %02x%02x%02x%02x%02x%02x Instance ID %u Requestor Instance ID %u Service Control 0x%x (Service Control Type %u)",
-- 
2.49.0


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux