into trunk.
(closes issue #11895, reported by pj, patched by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101577
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
AST_LIST_TRAVERSE(&threadl, th, list) {
if ((s->sin_family == th->ser->requestor.sin_family) &&
(s->sin_addr.s_addr == th->ser->requestor.sin_addr.s_addr) &&
- (s->sin_port == th->ser->requestor.sin_port))
+ (s->sin_port == th->ser->requestor.sin_port)) {
+ AST_LIST_UNLOCK(&threadl);
return th->ser;
+ }
}
AST_LIST_UNLOCK(&threadl);
return NULL;