mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't return the address of a stack variable.
This commit is contained in:
parent
25738fbcc5
commit
c0ba84e4a3
1 changed files with 2 additions and 2 deletions
|
|
@ -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 <sys/param.h>
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue