Revision 3a1bc175 vl.c
b/vl.c | ||
---|---|---|
2118 | 2118 |
break; |
2119 | 2119 |
case 16: |
2120 | 2120 |
nb_nics = atoi(optarg); |
2121 |
if (nb_nics < 1 || nb_nics > MAX_NICS) {
|
|
2121 |
if (nb_nics < 0 || nb_nics > MAX_NICS) {
|
|
2122 | 2122 |
fprintf(stderr, "qemu: invalid number of network interfaces\n"); |
2123 | 2123 |
exit(1); |
2124 | 2124 |
} |
Also available in: Unified diff