daemon.c (110560) | daemon.c (111823) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1998-2002 Sendmail, Inc. and its suppliers. | 2 * Copyright (c) 1998-2003 Sendmail, Inc. and its suppliers. |
3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * 12 */ 13 14#include <sendmail.h> 15 | 3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * 12 */ 13 14#include <sendmail.h> 15 |
16SM_RCSID("@(#)$Id: daemon.c,v 8.613.2.11 2002/12/05 16:13:52 ca Exp $") | 16SM_RCSID("@(#)$Id: daemon.c,v 8.613.2.14 2003/02/11 17:17:22 ca Exp $") |
17 18#if defined(SOCK_STREAM) || defined(__GNU_LIBRARY__) 19# define USE_SOCK_STREAM 1 20#endif /* defined(SOCK_STREAM) || defined(__GNU_LIBRARY__) */ 21 22#if defined(USE_SOCK_STREAM) 23# if NETINET || NETINET6 24# include <arpa/inet.h> --- 3488 unchanged lines hidden (view full) --- 3513 if (strchr(ibuf, '\n') != NULL || nleft <= 0) 3514 break; 3515 } 3516 (void) close(s); 3517 sm_clrevent(ev); 3518 if (i < 0 || p == &ibuf[0]) 3519 goto noident; 3520 | 17 18#if defined(SOCK_STREAM) || defined(__GNU_LIBRARY__) 19# define USE_SOCK_STREAM 1 20#endif /* defined(SOCK_STREAM) || defined(__GNU_LIBRARY__) */ 21 22#if defined(USE_SOCK_STREAM) 23# if NETINET || NETINET6 24# include <arpa/inet.h> --- 3488 unchanged lines hidden (view full) --- 3513 if (strchr(ibuf, '\n') != NULL || nleft <= 0) 3514 break; 3515 } 3516 (void) close(s); 3517 sm_clrevent(ev); 3518 if (i < 0 || p == &ibuf[0]) 3519 goto noident; 3520 |
3521 if (*--p == '\n' && *--p == '\r') | 3521 if (p >= &ibuf[2] && *--p == '\n' && *--p == '\r') |
3522 p--; 3523 *++p = '\0'; 3524 3525 if (tTd(9, 3)) 3526 sm_dprintf("getauthinfo: got %s\n", ibuf); 3527 3528 /* parse result */ 3529 p = strchr(ibuf, ':'); --- 844 unchanged lines hidden --- | 3522 p--; 3523 *++p = '\0'; 3524 3525 if (tTd(9, 3)) 3526 sm_dprintf("getauthinfo: got %s\n", ibuf); 3527 3528 /* parse result */ 3529 p = strchr(ibuf, ':'); --- 844 unchanged lines hidden --- |