From f8af0725487bd1969148f340edae5cd4ff32dda4 Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Sun, 18 May 2003 15:07:25 +0000 Subject: [PATCH] Fix a simple bug that prevents svc_tli_create to bind to the address specified by caller. NetBSD rev. 1.6 Reviewed by: rwatson Approved by: rwatson (re) Obtained from: NetBSD --- lib/libc/rpc/svc_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/rpc/svc_generic.c b/lib/libc/rpc/svc_generic.c index e1a09a9cbab..1ffb9327ee2 100644 --- a/lib/libc/rpc/svc_generic.c +++ b/lib/libc/rpc/svc_generic.c @@ -245,7 +245,7 @@ svc_tli_create(fd, nconf, bindaddr, sendsz, recvsz) _listen(fd, SOMAXCONN); } else { if (_bind(fd, - (struct sockaddr *)(void *)&bindaddr->addr.buf, + (struct sockaddr *)bindaddr->addr.buf, (socklen_t)si.si_alen) < 0) { warnx( "svc_tli_create: could not bind to requested address");