svn commit: r204177 - head/sbin/hastd

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Feb 21 19:56:47 UTC 2010


Author: pjd
Date: Sun Feb 21 19:56:47 2010
New Revision: 204177
URL: http://svn.freebsd.org/changeset/base/204177

Log:
  Changing proto_socketpair.c compilation and linking order revealed
  a problem - we should simply ignore proto_server() if address
  doesn't start with socketpair://, and not abort.

Modified:
  head/sbin/hastd/proto_socketpair.c

Modified: head/sbin/hastd/proto_socketpair.c
==============================================================================
--- head/sbin/hastd/proto_socketpair.c	Sun Feb 21 19:53:33 2010	(r204176)
+++ head/sbin/hastd/proto_socketpair.c	Sun Feb 21 19:56:47 2010	(r204177)
@@ -91,9 +91,12 @@ sp_connect(void *ctx __unused)
 }
 
 static int
-sp_server(const char *addr __unused, void **ctxp __unused)
+sp_server(const char *addr, void **ctxp __unused)
 {
 
+	if (strcmp(addr, "socketpair://") != 0)
+		return (-1);
+
 	assert(!"proto_server() not supported on socketpairs");
 	abort();
 }


More information about the svn-src-head mailing list