mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-16 21:10:57 +08:00
Fix pcapd crash with no arguments
This commit is contained in:
parent
4a859bee6a
commit
05faa403f5
@ -1012,7 +1012,7 @@ static void parse_args(pcapd_conf_t *conf, int argc, char **argv) {
|
||||
|
||||
if(conf->num_interfaces == 0) {
|
||||
conf->inet_ifid = 0;
|
||||
conf->ifnames[conf->num_interfaces++] = "@inet";
|
||||
conf->ifnames[conf->num_interfaces++] = strdup("@inet");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user