--- a/imsp/option.c
+++ b/imsp/option.c
@@ -322,11 +322,11 @@ int option_test(user, opt, admin, dflt)
     /* check user options database if user isn't the empty string */
     if (*user) {
 	snprintf(dbname, sizeof(dbname), optiondb, user);
-	if (sdb_get(dbname, opt, SDB_ICASE, &value) < 0) return (NULL);
+	if (sdb_get(dbname, opt, SDB_ICASE, &value) < 0) return (0);
     }
     /* check global options */
     if (value == NULL && sdb_get(options, opt, SDB_ICASE, &value) < 0) {
-	return (NULL);
+	return (0);
     }
 
     /* check for "non-visible" options */
