diff options
author | dequis <dx@dxzone.com.ar> | 2016-11-13 16:52:43 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2016-11-13 16:52:43 -0300 |
commit | 701ab8129ba9ea64f569daedca9a8603abad740f (patch) | |
tree | d0a42f35c18b218eec468588a2c508d805214cf0 | |
parent | fca468311f1fd9880ed2ae4991b2ecc261fd34d5 (diff) |
imcb_file_send_start: handle ft attempts from non-existing users
-rw-r--r-- | protocols/bee_ft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/bee_ft.c b/protocols/bee_ft.c index 27fd4eac..916b2e88 100644 --- a/protocols/bee_ft.c +++ b/protocols/bee_ft.c @@ -30,7 +30,7 @@ file_transfer_t *imcb_file_send_start(struct im_connection *ic, char *handle, ch bee_t *bee = ic->bee; bee_user_t *bu = bee_user_by_handle(bee, ic, handle); - if (bee->ui->ft_in_start) { + if (bee->ui->ft_in_start && bu) { return bee->ui->ft_in_start(bee, bu, file_name, file_size); } else { return NULL; |