]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix display of plugin hook types
authorHeiko Hund <heiko.hund@sophos.com>
Mon, 29 Oct 2012 13:38:30 +0000 (14:38 +0100)
committerDavid Sommerseth <davids@redhat.com>
Mon, 29 Oct 2012 14:39:33 +0000 (15:39 +0100)
The OPENVPN_PLUGIN_ROUTE_PREDOWN hook was missing and displayed as
"PLUGIN_???" in the log.

OPENVPN_PLUGIN_ENABLE_PF was the only one that displayed the
OPENVPN_ prefix.

Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Acked-by: David Sommerseth <davids@redhat.com>
Message-Id: 1351517910-11414-1-git-send-email-heiko.hund@sophos.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/7111
Signed-off-by: David Sommerseth <davids@redhat.com>
(cherry picked from commit ae303d444c11984b87e0046c4138982d7a41fd8b)

src/openvpn/plugin.c

index 944d833b4b43511116f43088bd1c3d0baaed7920..83f79e4fd31bdbd4b1a411022b76041ab58fa6c2 100644 (file)
@@ -98,7 +98,9 @@ plugin_type_name (const int type)
     case OPENVPN_PLUGIN_TLS_FINAL:
       return "PLUGIN_TLS_FINAL";
     case OPENVPN_PLUGIN_ENABLE_PF:
-      return "OPENVPN_PLUGIN_ENABLE_PF";
+      return "PLUGIN_ENABLE_PF";
+    case OPENVPN_PLUGIN_ROUTE_PREDOWN:
+      return "PLUGIN_ROUTE_PREDOWN";
     default:
       return "PLUGIN_???";
     }