diff options
author | 2001-08-25 07:42:19 +0000 | |
---|---|---|
committer | 2001-08-25 07:42:19 +0000 | |
commit | 2316c778d39c2f478f9622005be6238faf91c8e8 (patch) | |
tree | 34c652d6d8fec9a2db6ecd31fb3aa0f6c4480cd8 | |
parent | The VP cache code, while giving the powerpc port a signficant speed (diff) | |
download | wireguard-openbsd-2316c778d39c2f478f9622005be6238faf91c8e8.tar.xz wireguard-openbsd-2316c778d39c2f478f9622005be6238faf91c8e8.zip |
Casting of lhs, is not what you think it is.
-rw-r--r-- | sbin/isakmpd/pf_key_v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/pf_key_v2.c b/sbin/isakmpd/pf_key_v2.c index a0a99c1ea3d..bd93206c704 100644 --- a/sbin/isakmpd/pf_key_v2.c +++ b/sbin/isakmpd/pf_key_v2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_key_v2.c,v 1.87 2001/08/24 13:47:21 ho Exp $ */ +/* $OpenBSD: pf_key_v2.c,v 1.88 2001/08/25 07:42:19 niklas Exp $ */ /* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */ /* @@ -770,7 +770,7 @@ pf_key_v2_get_spi (size_t *sz, u_int8_t proto, struct sockaddr *src, goto cleanup; /* XXX This is ugly. */ if (proto == IPSEC_PROTO_IPCOMP) - (u_int16_t)*spi = *(u_int16_t *)sa->sadb_sa_spi; + *(u_int16_t *)spi = *(u_int16_t *)sa->sadb_sa_spi; else memcpy (spi, &sa->sadb_sa_spi, *sz); |