Fix previous. Obvously the condition is reversed.
authoryasuoka <yasuoka@openbsd.org>
Mon, 8 Aug 2016 08:22:29 +0000 (08:22 +0000)
committeryasuoka <yasuoka@openbsd.org>
Mon, 8 Aug 2016 08:22:29 +0000 (08:22 +0000)
usr.sbin/switchd/ofcconn.c

index bcc611a..4479db7 100644 (file)
@@ -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 <yasuoka@openbsd.org>
@@ -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);