[asterisk-commits] file: branch 1.2 r58579 - /branches/1.2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Mar 9 13:46:44 MST 2007


Author: file
Date: Fri Mar  9 14:46:43 2007
New Revision: 58579

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58579
Log:
If we are unable to lookup the host in a c line we have to abort, otherwise the previous data is gone and we will (potentially) have no data when all is said and done.

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?view=diff&rev=58579&r1=58578&r2=58579
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Fri Mar  9 14:46:43 2007
@@ -3667,6 +3667,7 @@
 			hp = ast_gethostbyname(host, &ahp);
 			if (!hp) {
 				ast_log(LOG_WARNING, "Unable to lookup host in secondary c= line, '%s'\n", c);
+				return -1;
 			}
 		}
 	}
@@ -3693,6 +3694,7 @@
 			hp = ast_gethostbyname(host, &ahp);
 			if (!hp) {
 				ast_log(LOG_WARNING, "Unable to lookup host in secondary c= line, '%s'\n", c);
+				return -1;
 			}
 		}
 	}



More information about the asterisk-commits mailing list