obexd: Fix missing Name header check in FTP action code
diff --git a/obexd/plugins/ftp.c b/obexd/plugins/ftp.c
index 57fd23b..fb9ba58 100644
--- a/obexd/plugins/ftp.c
+++ b/obexd/plugins/ftp.c
@@ -541,6 +541,9 @@
 	uint8_t action_id;
 
 	name = obex_get_name(os);
+	if (name == NULL || !is_filename(name))
+		return -EBADR;
+
 	destname = obex_get_destname(os);
 	action_id = obex_get_action_id(os);