Re: [PATCH v3 15/26] hostapd: add global TERMINATE command

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

 



On 20 February 2016 at 16:30, Jouni Malinen <j@xxxxx> wrote:
> On Wed, Feb 17, 2016 at 01:14:18PM +0100, Janusz Dziedzic wrote:
>> This will terminate hostapd
>
>> diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
>> @@ -3084,6 +3084,8 @@ static void hostapd_global_ctrl_iface_receive(int sock, void *eloop_ctx,
>> +     } else if (os_strncmp(buf, "TERMINATE", 9) == 0) {
>> +             eloop_terminate();
>
> Why os_strncmp() instead of os_strcmp()? I don't see much point in
> allowing arbitrary text after the command in this type of case.
>
Will fix that.

> --
> Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
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