From Jukka Salmi: Fix couple of typos from previous commit.

This commit is contained in:
tteras 2009-05-19 09:34:52 +00:00
parent a1b5b4ecad
commit 68ab535bfd
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ipsec_doi.c,v 1.42 2009/05/18 17:40:38 tteras Exp $ */
/* $NetBSD: ipsec_doi.c,v 1.43 2009/05/19 09:34:52 tteras Exp $ */
/* Id: ipsec_doi.c,v 1.55 2006/08/17 09:20:41 vanhu Exp */
@ -4305,7 +4305,7 @@ ipsecdoi_id2str(id)
case IPSECDOI_ID_IPV4_ADDR_RANGE:
#ifndef __linux__
+ saddr.sa.sa_len = sizeof(struct sockaddr_in);
saddr.sa.sa_len = sizeof(struct sockaddr_in);
#endif
saddr.sa.sa_family = AF_INET;
saddr.sin.sin_port = IPSEC_PORT_ANY;

View File

@ -1,4 +1,4 @@
/* $NetBSD: isakmp.c,v 1.55 2009/05/18 17:40:38 tteras Exp $ */
/* $NetBSD: isakmp.c,v 1.56 2009/05/19 09:34:52 tteras Exp $ */
/* Id: isakmp.c,v 1.74 2006/05/07 21:32:59 manubsd Exp */
@ -255,7 +255,7 @@ isakmp_handler(ctx, so_isakmp)
extralen += sizeof(x.lbuf.udp) + x.lbuf.ip.ihl;
}
#else
if (ntohs(lbuf.udp.uh_dport) == 501) {
if (ntohs(x.lbuf.udp.uh_dport) == 501) {
extralen += sizeof(x.lbuf.udp) + x.lbuf.ip.ip_hl;
}
#endif