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.c | |
parent | 77d306336665df0202684ea013b56ccab67d48cb (diff) |
Small cleanup to avoid gotos, from Andrey Matveev.
ok moritz@
Diffstat (limited to 'sbin/isakmpd/udp.c')
-rw-r--r-- | sbin/isakmpd/udp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c index 7a9bbce5db2..8b4d939f495 100644 --- a/sbin/isakmpd/udp.c +++ b/sbin/isakmpd/udp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp.c,v 1.92 2005/10/27 08:19:59 hshoexer Exp $ */ +/* $OpenBSD: udp.c,v 1.93 2006/02/02 14:33:53 hshoexer Exp $ */ /* $EOM: udp.c,v 1.57 2001/01/26 10:09:57 niklas Exp $ */ /* @@ -385,7 +385,7 @@ udp_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)) @@ -395,7 +395,6 @@ udp_report(struct transport *t) LOG_DBG((LOG_REPORT, 0, "udp_report: fd %d src %s:%u dst %s:%u", u->s, src, ntohs(sport), dst ? dst : "<none>", ntohs(dport))); -ret: if (dst) free(dst); if (src) |