fix potential null pointer deref when packets are forged
[project/mdnsd.git] / main.c
diff --git a/main.c b/main.c
index 383eb9c..f559c19 100644 (file)
--- a/main.c
+++ b/main.c
@@ -65,6 +65,8 @@ main(int argc, char **argv)
                case 'i':
                        interface_add(optarg);
                        break;
+               default:
+                       return -1;
                }
        }