Skip to content

Commit

Permalink
imcb_file_send_start: handle ft attempts from non-existing users
Browse files Browse the repository at this point in the history
  • Loading branch information
dequis committed Nov 13, 2016
1 parent fca4683 commit 701ab81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/bee_ft.c
Expand Up @@ -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;
Expand Down

2 comments on commit 701ab81

@carnil
Copy link

@carnil carnil commented on 701ab81 Jan 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dequis
Copy link
Member Author

@dequis dequis commented on 701ab81 Jan 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CVE-2016-10189 has been assigned for this

(see also 30d598c for a followup fix)

Please sign in to comment.