[asterisk-commits] mmichelson: branch mmichelson/udptl-v6 r278502 - /team/mmichelson/udptl-v6/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 21 12:44:49 CDT 2010


Author: mmichelson
Date: Wed Jul 21 12:44:45 2010
New Revision: 278502

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=278502
Log:
Restore missing "== 0" statement in ast_udptl_new_with_bindaddr().


Modified:
    team/mmichelson/udptl-v6/main/udptl.c

Modified: team/mmichelson/udptl-v6/main/udptl.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/udptl-v6/main/udptl.c?view=diff&rev=278502&r1=278501&r2=278502
==============================================================================
--- team/mmichelson/udptl-v6/main/udptl.c (original)
+++ team/mmichelson/udptl-v6/main/udptl.c Wed Jul 21 12:44:45 2010
@@ -960,7 +960,7 @@
 	for (;;) {
 		ast_sockaddr_copy(&udptl->us, addr);
 		ast_sockaddr_set_port(&udptl->us, x);
-		if (ast_bind(udptl->fd, &udptl->us)) {
+		if (ast_bind(udptl->fd, &udptl->us) == 0) {
 			break;
 		}
 		if (errno != EADDRINUSE) {




More information about the asterisk-commits mailing list