]> jfr.im git - solanum.git/blobdiff - modules/m_oper.c
m_info: Correct description of general::client_exit like in example confs.
[solanum.git] / modules / m_oper.c
index 96794a16a3eafeccdd2ae336b331a6a178efad26..75167ae18bbed3fdcbe2291d7fe9a3cad1619bb0 100644 (file)
@@ -196,7 +196,7 @@ match_oper_password(const char *password, struct oper_conf *oper_p)
        else
                encr = password;
 
-       if(strcmp(encr, oper_p->passwd) == 0)
+       if(encr != NULL && strcmp(encr, oper_p->passwd) == 0)
                return YES;
        else
                return NO;