From c0ba84e4a353f3edfd3413c8eba1cd972db5ef7b Mon Sep 17 00:00:00 2001 From: David Greenman Date: Fri, 23 Sep 1994 10:25:38 +0000 Subject: [PATCH] Don't return the address of a stack variable. --- usr.sbin/ypbind/ypbind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c index 18cfd642861a..73ddcaa5d8e7 100644 --- a/usr.sbin/ypbind/ypbind.c +++ b/usr.sbin/ypbind/ypbind.c @@ -28,7 +28,7 @@ */ #ifndef LINT -static char rcsid[] = "$Id: ypbind.c,v 1.2 1994/01/11 19:01:23 nate Exp $"; +static char rcsid[] = "$Id: ypbind.c,v 1.1 1994/08/08 01:03:58 wollman Exp $"; #endif #include @@ -182,7 +182,7 @@ struct ypbind_setdom *argp; CLIENT *clnt; { struct sockaddr_in *fromsin, bindsin; - char res; + static char res; bzero((char *)&res, sizeof(res)); fromsin = svc_getcaller(transp);