Simplify ctrl_iface sendto() use
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 23 Sep 2013 14:52:10 +0000 (17:52 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 23 Sep 2013 14:52:10 +0000 (17:52 +0300)
commit742e715b31e11576706130c90514c701d49abc8d
treee8304a469fe806bf5182734c64f218a6fc292d0c
parent6668efda5813b87c43cfb6780c60dfebe0b9da4c
Simplify ctrl_iface sendto() use

Prepare reply buffer first for all cases and then use a single sendto()
call instead of three calls depending on reply type. This allows simpler
error handling for control interface send operations.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/ctrl_iface_unix.c