nama.patch
abb8809b31da50e338c62371ad9834e23c3a0483984f5427643eadb7edf69670
*** old/nama.c 1997/01/18 20:31:24
--- nama.c 1997/03/31 16:58:09
***************
*** 10,16 ****
* Author: Marcus J. Ranum, Trusted Information Systems, Inc.
* Added "?" wildcard matching from William Gianopoulos, gianowa@eo.ray.com
*/
! static char RcsId[] = "$Header: /usr/home/rick/fwtk2.0/fwtk/lib/RCS/nama.c,v 1.9 1997/01/18 20:31:24 rick Exp $";
#include <stdio.h>
#include <sys/types.h>
--- 10,16 ----
* Author: Marcus J. Ranum, Trusted Information Systems, Inc.
* Added "?" wildcard matching from William Gianopoulos, gianowa@eo.ray.com
*/
! static char RcsId[] = "$Header: /usr/home/rick/fwtk2.0/fwtk/lib/RCS/nama.c,v 1.10 1997/03/31 16:57:54 rick Exp $";
#include <stdio.h>
#include <sys/types.h>
***************
*** 427,433 ****
syslog(LLEV,"securityalert: invalid host address length (%d) hostname %.512s", hp->h_length, nam);
return(0);
}
! bcopy(hp->h_addr,&sin.sin_addr,hp->h_length);
eq = maskmatch(pat, inet_ntoa(sin.sin_addr));
if (eq)
return eq;
--- 427,433 ----
syslog(LLEV,"securityalert: invalid host address length (%d) hostname %.512s", hp->h_length, nam);
return(0);
}
! bcopy(hp_addr,&sin.sin_addr,hp->h_length);
eq = maskmatch(pat, inet_ntoa(sin.sin_addr));
if (eq)
return eq;