[isf-wifidog] Re-open bug ticket 471

Genevieve Bastien gbastien at versatic.net
Ven 5 Mar 08:52:10 EST 2010


Hi,

The fix applied for this bug was done in a "if" block starting with

if (strncasecmp(buf,"Host: ",6) == 0)   (line 533)

The line mentioned here is from a different block with the same pattern
starting with

if (strncasecmp(buf,"Authorization: ",15) == 0)   (line 493)

A quick guess would be to do the same fix to that other block of code.

-- 
Geneviève Bastien


Jean-Philippe Menil wrote:
> Hi,
> i've no right to reopen the bug ticket number 471.
> The workaround provide in this ticket fix the problem.
> But now, in some rarly times, wifidog segfault.
> Here is the relvant trace:
>
> Core was generated by `/usr/bin/wifidog -s -c /etc/wifidog/XX.conf -w
> /tmp/wdctl-XX.sock'.
> Program terminated with signal 11, Segmentation fault.
> [New process 8650]
> [New process 8651]
> [New process 8652]
> [New process 8656]
> [New process 8654]
> [New process 10017]
> [New process 8657]
> [New process 10019]
> [New process 8659]
> [New process 8655]
> [New process 8658]
> [New process 10018]
> [New process 8653]
> [New process 9906]
> #0  0x00007f1f30def82c in httpdReadRequest (server=0x143a170,
> r=0x7f1f200072d0) at api.c:493.
> 493                    if (strncmp(cp,"Basic ", 6) != 0)
> (gdb) where
> #0  0x00007f1f30def82c in httpdReadRequest (server=0x143a170,
> r=0x7f1f200072d0) at api.c:493
> #1  0x000000000040b41a in thread_httpd (args=<value optimized out>) at
> httpd_thread.c:61
> #2  0x00007f1f309bd73a in pthread_create@@GLIBC_2.2.5 () from
> /lib/libpthread.so.0
> #3  0x0000000000000000 in ?? ()
>
> I can't reproduce it, as i can't reproduce the bug above.
>
> Any advice to fix it?
>
> Thnaks.
> _______________________________________________
> WiFiDog mailing list
> WiFiDog at listes.ilesansfil.org
> http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog



Plus d'informations sur la liste de diffusion WiFiDog