[asterisk-commits] simon.perreault: branch group/v6-new r274682 - /team/group/v6-new/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 7 14:43:12 CDT 2010


Author: simon.perreault
Date: Wed Jul  7 14:43:08 2010
New Revision: 274682

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=274682
Log:
Fixed pointer errors introduced by refactoring

Modified:
    team/group/v6-new/main/netsock2.c

Modified: team/group/v6-new/main/netsock2.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/main/netsock2.c?view=diff&rev=274682&r1=274681&r2=274682
==============================================================================
--- team/group/v6-new/main/netsock2.c (original)
+++ team/group/v6-new/main/netsock2.c Wed Jul  7 14:43:08 2010
@@ -489,11 +489,11 @@
 
 void ast_sockaddr_from_sin(struct ast_sockaddr *addr, const struct sockaddr_in *sin)
 {
-	memcpy(&addr->ss, &sin, sizeof(sin));
+	memcpy(&addr->ss, &sin, sizeof(*sin));
 
 	if (addr->ss.ss_family != AF_INET) {
 		ast_log(LOG_DEBUG, "Address family is not AF_INET\n");
 	}
 
-	addr->len = sizeof(sin);
-}
+	addr->len = sizeof(*sin);
+}




More information about the asterisk-commits mailing list