--- vl.c.orig 2004-04-03 14:37:10.000000000 +0200 +++ vl.c 2004-04-03 14:38:43.000000000 +0200 @@ -1728,6 +1728,9 @@ macaddr[4] = 0x34; macaddr[5] = 0x56; + for(i = 0; i < MAX_NICS; i++) + nd_table[i].fd = -1; + for(;;) { c = getopt_long_only(argc, argv, "hm:d:n:sp:L:", long_options, &long_index); if (c == -1) @@ -1934,7 +1937,6 @@ /* init host network redirectors */ for(i = 0; i < MAX_NICS; i++) { NetDriverState *nd = &nd_table[i]; - nd->fd = -1; /* init virtual mac address */ nd->macaddr[0] = macaddr[0]; nd->macaddr[1] = macaddr[1];