X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fuser_ops.c;fp=citadel%2Fuser_ops.c;h=473e83a80a8783c62ba938653a5e0c91599fbc5e;hb=2b5449a35c6ae9b76bee5bb1b2fe0f5e17393c38;hp=0dc5ae3276b4909587f673041368b5f53cc2fc8a;hpb=d68abff5fe1d3d42d1d3ac6ad612ecb68429b3db;p=citadel.git diff --git a/citadel/user_ops.c b/citadel/user_ops.c index 0dc5ae327..473e83a80 100644 --- a/citadel/user_ops.c +++ b/citadel/user_ops.c @@ -84,9 +84,12 @@ int CtdlGetUser(struct ctdluser *usbuf, char *name) } makeuserkey(usernamekey, name); + if (IsEmptyStr(usernamekey)) { + return(1); // empty user name + } cdbus = cdb_fetch(CDB_USERS, usernamekey, strlen(usernamekey)); - if (cdbus == NULL) { /* user not found */ + if (cdbus == NULL) { // user not found return(1); } if (usbuf != NULL) {