Diff between 7576ca81dea4ed7cdd7564fd068901649a906200 and c32fc4f0969b6b354f60f230441e0e688813faab
Changed Files
| File | Additions | Deletions | Status |
| obexd/plugins/ftp.c | +3 | -0 | modified |
Full Patch
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 @@ int ftp_action(struct obex_session *os, obex_object_t *obj, void *user_data)
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);