Skip to content

Commit

Permalink
turn assertion into complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Dec 6, 2017
1 parent 2546d66 commit c997b6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/proto_detail/proto_detail_file.c
Expand Up @@ -438,7 +438,11 @@ static void mod_vnode_delete(fr_event_list_t *el, int fd, UNUSED int fflags, voi

DEBUG("proto_detail (%s): Deleted %s", inst->name, inst->filename_work);

rad_assert(fd == inst->vnode_fd);
if (fd != inst->vnode_fd) {
ERROR("Received DELETE for FD %d, when we were expecting one on FD %d - ignoring it",
fd, inst->vnode_fd);
return;
}

if (fr_event_fd_delete(el, fd, FR_EVENT_FILTER_VNODE) < 0) {
ERROR("Failed removing DELETE callback after deletion: %s", fr_strerror());
Expand Down

0 comments on commit c997b6e

Please sign in to comment.