(closes issue #12362) [redo of 113012]
commit25e685e9a1100e3e3d8fea7680ad865ad4936473
authorjpeeler <jpeeler@614ede4d-c843-0410-af14-a771ab80d22e>
Mon, 7 Apr 2008 21:34:45 +0000 (7 21:34 +0000)
committerjpeeler <jpeeler@614ede4d-c843-0410-af14-a771ab80d22e>
Mon, 7 Apr 2008 21:34:45 +0000 (7 21:34 +0000)
tree3818299b085f3d105f8195e7d69d21699b24995b
parent10a210b061462c4f29745ec71997475356c93623
(closes issue #12362) [redo of 113012]

This fixes a for loop (in realtime_peer) to check all the ast_variables the loop was intending to test rather than just the first one. The change exposed the problem of calling memcpy on a NULL pointer, in this case the passed in sockaddr_in struct which is now checked.

git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@113240 614ede4d-c843-0410-af14-a771ab80d22e
channels/chan_sip.c