]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
snmp: fix a typo in `agent_priv.c`
authorVincent Bernat <bernat@luffy.cx>
Mon, 24 Jun 2013 17:41:46 +0000 (19:41 +0200)
committerVincent Bernat <bernat@luffy.cx>
Mon, 24 Jun 2013 17:46:02 +0000 (19:46 +0200)
src/daemon/agent_priv.c

index d74ab54c6cad8ebab024908a6cc83c7a6baa6a9d..6334cb5e66e1f1faf38f3d6e302bcbc4de89b90c 100644 (file)
@@ -126,7 +126,7 @@ agent_priv_unix_transport(const char *string, int len, int local)
        if (!string)
                return NULL;
        if (len >= sizeof(addr.sun_path) ||
-           strlcpy(addr.sun_path, string, sizeof(addr.sun_path)) >= sizeof(addr.sun_path))
+           strlcpy(addr.sun_path, string, sizeof(addr.sun_path)) >= sizeof(addr.sun_path)) {
                log_warnx("snmp", "path too long for Unix domain transport");
                return NULL;
        }