:: [DNG] Pointer error in the backend …
Góra strony
Delete this message
Reply to this message
Autor: aitor_czr
Data:  
Dla: Edward Bartolo, dng
Temat: [DNG] Pointer error in the backend of Netman
Hi all,

In the case of an automatically attempt to connect with netman, i get
the following error:

$ ./backend 10
*** Error in `./backend': realloc(): invalid pointer: 0x00007ffc3deb55f4 ***
Aborted

I believe there is an uncontrolled pointer somewhere...

IMHO (:-) ) the line 238 of ''automated_scanner.c':

active_wifi_list = realloc(active_wifis + 10, sizeof(void*));

should be replaced by this other one:

active_wifi_list = realloc(active_wifi_list, (*active_wifis +
9)*sizeof(char*));

Cheers,

    Aitor.