commit | c32fc4f0969b6b354f60f230441e0e688813faab | [log] [tgz] |
---|---|---|
author | Slawomir Bochenski <lkslawek@gmail.com> | Tue Aug 09 10:44:39 2011 +0200 |
committer | Marcel Holtmann <marcel@holtmann.org> | Tue Dec 04 22:48:41 2012 +0100 |
tree | 3f7b8a14aa7be16664502d1f054ffe9ddb92e2e8 | |
parent | 7576ca81dea4ed7cdd7564fd068901649a906200 [diff] [blame] |
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);