Package: libopenobex / 1.7.2-1

fix_segfault Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/udev/obex-check-device.c b/udev/obex-check-device.c
index 9eb4769..df160ca 100644
--- a/udev/obex-check-device.c
+++ b/udev/obex-check-device.c
@@ -62,8 +62,8 @@ int main (int argc, char **argv)
 	unsigned long vendor;
 	unsigned long product;
 
-	if (argc < 2)
-		return 0;
+	if (argc < 3)
+		return EXIT_FAILURE;
 
 	vendor = strtoul(argv[1], NULL, 16);
 	product = strtoul(argv[2], NULL, 16);