yp_access.c (12892) | yp_access.c (13375) |
---|---|
1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 103 unchanged lines hidden (view full) --- 112 113#ifdef TCP_WRAPPER 114 /* Check client address if TCP_WRAPPER is enalbled. */ 115 status = hosts_ctl(progname, STRING_UNKNOWN, 116 inet_ntoa(rqhost->sin_addr, ""); 117 118 if (!status && rqhost->sin_addr.s_addr != oldaddr) { 119 yp_error("connect from %s:%d refused", | 1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 103 unchanged lines hidden (view full) --- 112 113#ifdef TCP_WRAPPER 114 /* Check client address if TCP_WRAPPER is enalbled. */ 115 status = hosts_ctl(progname, STRING_UNKNOWN, 116 inet_ntoa(rqhost->sin_addr, ""); 117 118 if (!status && rqhost->sin_addr.s_addr != oldaddr) { 119 yp_error("connect from %s:%d refused", |
120 inet_ntoa(rqhost->sin_addr, ntohs(rqhost->sin_port)); | 120 inet_ntoa(rqhost->sin_addr), ntohs(rqhost->sin_port)); |
121 oldaddr = rqhost->sin_addr.s_addr; 122 return(1); 123 } 124#endif 125 return(0); 126 127} 128 --- 18 unchanged lines hidden --- | 121 oldaddr = rqhost->sin_addr.s_addr; 122 return(1); 123 } 124#endif 125 return(0); 126 127} 128 --- 18 unchanged lines hidden --- |