pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/vanessa_socket Fix socket outbound connections; ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f7a98ef0cf94
branches: trunk
changeset: 507345:f7a98ef0cf94
user: tv <tv%pkgsrc.org@localhost>
date: Tue Jan 31 14:55:26 2006 +0000
description:
Fix socket outbound connections; vanessa_socket_client_open_src_sockaddr_in()
was always zeroing out the "from", causing sin.sin_family to be zero.
(Move the memset to where it should have been, in the
vanessa_socket_client_open_sockaddr_in() function.)
Bump PKGREVISION.
diffstat:
devel/vanessa_socket/Makefile | 4 ++--
devel/vanessa_socket/distinfo | 3 ++-
devel/vanessa_socket/patches/patch-ab | 20 ++++++++++++++++++++
3 files changed, 24 insertions(+), 3 deletions(-)
diffs (50 lines):
diff -r e924c1b52059 -r f7a98ef0cf94 devel/vanessa_socket/Makefile
--- a/devel/vanessa_socket/Makefile Tue Jan 31 13:20:13 2006 +0000
+++ b/devel/vanessa_socket/Makefile Tue Jan 31 14:55:26 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2005/04/11 21:45:39 tv Exp $
+# $NetBSD: Makefile,v 1.4 2006/01/31 14:55:26 tv Exp $
#
DISTNAME= vanessa_socket-0.0.7
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.vergenet.net/linux/vanessa/download/vanessa_socket/0.0.7/
diff -r e924c1b52059 -r f7a98ef0cf94 devel/vanessa_socket/distinfo
--- a/devel/vanessa_socket/distinfo Tue Jan 31 13:20:13 2006 +0000
+++ b/devel/vanessa_socket/distinfo Tue Jan 31 14:55:26 2006 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2006/01/15 17:32:52 joerg Exp $
+$NetBSD: distinfo,v 1.4 2006/01/31 14:55:27 tv Exp $
SHA1 (vanessa_socket-0.0.7.tar.gz) = cd32988ffd5f84637bb7f4725d5aa569cc3f3fe2
RMD160 (vanessa_socket-0.0.7.tar.gz) = 38b8c24a18951b2f161184e55f156cb2f1f16f2f
Size (vanessa_socket-0.0.7.tar.gz) = 321042 bytes
SHA1 (patch-aa) = 30e21dca8c32f8ae2f2be5bf49f7997a2445ffc8
+SHA1 (patch-ab) = f273ade17cea1a2949edec494a96eb175287c308
diff -r e924c1b52059 -r f7a98ef0cf94 devel/vanessa_socket/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/vanessa_socket/patches/patch-ab Tue Jan 31 14:55:26 2006 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.1 2006/01/31 14:55:27 tv Exp $
+
+--- libvanessa_socket/vanessa_socket_client.c.orig 2004-03-22 21:10:04.000000000 -0500
++++ libvanessa_socket/vanessa_socket_client.c
+@@ -48,6 +48,7 @@ int vanessa_socket_client_open_sockaddr_
+ struct sockaddr_in from;
+
+ /* Connect to foreign 'to' server */
++ memset((struct sockaddr *) &from, 0, sizeof(from));
+ s = vanessa_socket_client_open_src_sockaddr_in(from, to,
+ flag | VANESSA_SOCKET_NO_FROM);
+ if (s < 0) {
+@@ -121,7 +122,6 @@ int vanessa_socket_client_open_src_socka
+ int out;
+
+ /* Create socket */
+- memset((struct sockaddr *) &from, 0, sizeof(from));
+ if ((out = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
+ VANESSA_LOGGER_DEBUG_ERRNO("socket");
+ return (-1);
Home |
Main Index |
Thread Index |
Old Index