From 985ba0fae1781ab2645b5e4f5fb86ad02bc51db5 Mon Sep 17 00:00:00 2001 From: Hans-Joerg Hoexer Date: Thu, 2 Feb 2006 14:33:54 +0000 Subject: Small cleanup to avoid gotos, from Andrey Matveev. ok moritz@ --- sbin/isakmpd/udp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sbin/isakmpd/udp.c') 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 : "", ntohs(dport))); -ret: if (dst) free(dst); if (src) -- cgit v1.2.3