diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-02-02 14:33:54 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-02-02 14:33:54 +0000 |
commit | 985ba0fae1781ab2645b5e4f5fb86ad02bc51db5 (patch) | |
tree | 2dfad9f2058779bb08b1d17fbf1509d9933cc34d /sbin/isakmpd/udp_encap.c | |
parent | 77d306336665df0202684ea013b56ccab67d48cb (diff) |
Small cleanup to avoid gotos, from Andrey Matveev.
ok moritz@
Diffstat (limited to 'sbin/isakmpd/udp_encap.c')
-rw-r--r-- | sbin/isakmpd/udp_encap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/isakmpd/udp_encap.c b/sbin/isakmpd/udp_encap.c index 79b3ad3a633..b18b294ca50 100644 --- a/sbin/isakmpd/udp_encap.c +++ b/sbin/isakmpd/udp_encap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_encap.c,v 1.18 2005/08/25 09:57:58 markus Exp $ */ +/* $OpenBSD: udp_encap.c,v 1.19 2006/02/02 14:33:53 hshoexer Exp $ */ /* * Copyright (c) 1998, 1999, 2001 Niklas Hallqvist. All rights reserved. @@ -326,7 +326,7 @@ udp_encap_report(struct transport *t) in_port_t sport, dport; if (sockaddr2text(u->src, &src, 0)) - goto ret; + return; sport = sockaddr_port(u->src); if (!u->dst || sockaddr2text(u->dst, &dst, 0)) @@ -336,7 +336,6 @@ udp_encap_report(struct transport *t) LOG_DBG ((LOG_REPORT, 0, "udp_encap_report: fd %d src %s:%u dst %s:%u", u->s, src, ntohs(sport), dst ? dst : "*", ntohs(dport))); - ret: if (dst) free(dst); if (src) |