From cec48c93a6ebf747f03c9295e6ee862f0cd4209a Mon Sep 17 00:00:00 2001 From: yasuoka Date: Mon, 8 Aug 2016 08:22:29 +0000 Subject: [PATCH] Fix previous. Obvously the condition is reversed. --- usr.sbin/switchd/ofcconn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/switchd/ofcconn.c b/usr.sbin/switchd/ofcconn.c index bcc611a0979..4479db72509 100644 --- a/usr.sbin/switchd/ofcconn.c +++ b/usr.sbin/switchd/ofcconn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofcconn.c,v 1.7 2016/08/08 07:24:27 yasuoka Exp $ */ +/* $OpenBSD: ofcconn.c,v 1.8 2016/08/08 08:22:29 yasuoka Exp $ */ /* * Copyright (c) 2016 YASUOKA Masahiko @@ -214,7 +214,7 @@ ofsw_close(struct ofsw *os) void ofsw_free(struct ofsw *os) { - if (os != NULL) + if (os == NULL) return; TAILQ_REMOVE(&ofsw_list, os, os_next); -- 2.20.1