fixed syslog url syntax, updated example config and manpage
[libradsec.git] / debug.c
diff --git a/debug.c b/debug.c
index c36a7be..51ea91f 100644 (file)
--- a/debug.c
+++ b/debug.c
@@ -70,6 +70,8 @@ int debug_set_destination(char *dest) {
     }
     if (!strncasecmp(dest, "x-syslog://", 11)) {
        dest += 11;
+       if (*dest == '/')
+           dest++;
        if (*dest) {
            for (i = 0; facstrings[i]; i++)
                if (!strcasecmp(dest, facstrings[i]))