[asterisk-commits] wedhorn: branch wedhorn/skinny-session r384165 - /team/wedhorn/skinny-session...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 27 15:10:48 CDT 2013


Author: wedhorn
Date: Wed Mar 27 15:10:44 2013
New Revision: 384165

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=384165
Log:
skinny: move skinny_req stuff into if fds.revents as res must be 4

Modified:
    team/wedhorn/skinny-session/channels/chan_skinny.c

Modified: team/wedhorn/skinny-session/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/team/wedhorn/skinny-session/channels/chan_skinny.c?view=diff&rev=384165&r1=384164&r2=384165
==============================================================================
--- team/wedhorn/skinny-session/channels/chan_skinny.c (original)
+++ team/wedhorn/skinny-session/channels/chan_skinny.c Wed Mar 27 15:10:44 2013
@@ -7528,11 +7528,7 @@
 				ast_verb(3, "Ending Skinny session from %s (bad input)\n", ast_inet_ntoa(s->sin.sin_addr));
 				break;
 			}
-		} else {
-			res = 0;
-		}
-
-		if (res > 0) {
+
 			if (!(req = ast_calloc(1, SKINNY_MAX_PACKET))) {
 				ast_verb(3, "Ending Skinny session from %s (failed parse)\n", ast_inet_ntoa(s->sin.sin_addr));
 				break;
@@ -7557,6 +7553,7 @@
 				break;
 			}
 		}
+
 		if (req) {
 			ast_free(req);
 			req = NULL;




More information about the asterisk-commits mailing list