mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
Remove a useless ast_mutex_unlock.
Issue #8186, patch by anthonyl (fix suggested by benh). git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@46332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2872,7 +2872,6 @@ static int get_input(struct skinnysession *s)
|
|||||||
}
|
}
|
||||||
*(int *)s->inbuf = htolel(dlen);
|
*(int *)s->inbuf = htolel(dlen);
|
||||||
res = read(s->fd, s->inbuf+4, dlen+4);
|
res = read(s->fd, s->inbuf+4, dlen+4);
|
||||||
ast_mutex_unlock(&s->lock);
|
|
||||||
if (res != (dlen+4)) {
|
if (res != (dlen+4)) {
|
||||||
ast_log(LOG_WARNING, "Skinny Client sent less data than expected.\n");
|
ast_log(LOG_WARNING, "Skinny Client sent less data than expected.\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user