Skip to content

Commit 701ab81

Browse files
committed
imcb_file_send_start: handle ft attempts from non-existing users
1 parent fca4683 commit 701ab81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: protocols/bee_ft.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ file_transfer_t *imcb_file_send_start(struct im_connection *ic, char *handle, ch
3030
bee_t *bee = ic->bee;
3131
bee_user_t *bu = bee_user_by_handle(bee, ic, handle);
3232

33-
if (bee->ui->ft_in_start) {
33+
if (bee->ui->ft_in_start && bu) {
3434
return bee->ui->ft_in_start(bee, bu, file_name, file_size);
3535
} else {
3636
return NULL;

0 commit comments

Comments
 (0)