diff options
-rw-r--r-- | sbin/isakmpd/virtual.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/virtual.c b/sbin/isakmpd/virtual.c index 09c2b7bffac..d6c29b769bc 100644 --- a/sbin/isakmpd/virtual.c +++ b/sbin/isakmpd/virtual.c @@ -1,4 +1,4 @@ -/* $OpenBSD: virtual.c,v 1.16 2005/04/06 16:00:20 deraadt Exp $ */ +/* $OpenBSD: virtual.c,v 1.17 2005/04/07 18:43:17 hshoexer Exp $ */ /* * Copyright (c) 2004 Håkan Olsson. All rights reserved. @@ -257,7 +257,7 @@ virtual_bind(const struct sockaddr *addr) free(v); return 0; } - ((struct transport *)v->main)->virtual = (struct transport *)v; + v->main->virtual = (struct transport *)v; #if defined (USE_NAT_TRAVERSAL) if (!disable_nat_t) { @@ -282,7 +282,7 @@ virtual_bind(const struct sockaddr *addr) free(v); return 0; } - ((struct transport *)v->encap)->virtual = (struct transport *)v; + v->encap->virtual = (struct transport *)v; } #endif v->encap_is_active = 0; |