lib: poll_funcs : poll_funcs_context_slot_find can select the wrong slot to replace.
commitb1264c2c6ada37b68a81b5e5a1b0e951aaacc0f3
authorJeremy Allison <jra@samba.org>
Mon, 19 Sep 2016 18:47:22 +0000 (19 11:47 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 21 Sep 2016 09:15:09 +0000 (21 11:15 +0200)
tree81c1e576f1644441560d0d29c5fa5a2e097ccf26
parentc748a1745fddbf52c2d15761c7861faf373a9b61
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

Back-port from 085542fc93b3c603e8cda6e481e94d5fe2dfc669

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/poll_funcs/poll_funcs_tevent.c