]> git.ipfire.org Git - thirdparty/samba.git/commit
lib: poll_funcs : poll_funcs_context_slot_find can select the wrong slot to replace.
authorJeremy Allison <jra@samba.org>
Sat, 17 Sep 2016 06:37:20 +0000 (23:37 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 19 Sep 2016 05:11:59 +0000 (07:11 +0200)
commit085542fc93b3c603e8cda6e481e94d5fe2dfc669
treec40da7a62143acffce4821049fc3b649d4c4bd18
parentee64d3f1d89a3ceb61d035e776c8235a19c8a2cf
lib: poll_funcs : poll_funcs_context_slot_find can select the wrong slot to replace.

Look for an exact match first, before a free slot.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12272

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Sep 19 07:12:00 CEST 2016 on sn-devel-144
lib/poll_funcs/poll_funcs_tevent.c