diff options
Diffstat (limited to 'util/toplazyBM.c')
-rw-r--r-- | util/toplazyBM.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/toplazyBM.c b/util/toplazyBM.c index b9a66c26..e2bc0a6b 100644 --- a/util/toplazyBM.c +++ b/util/toplazyBM.c @@ -86,12 +86,12 @@ int main(int argc, char *argv[]) p = strtok(p,"/ ]"); for(index=0; p && index<5; index++) { int diff; - if(!p[0]) { + // XXX what if bmid is invalid? + if(!p[0] || (bmid = passwd_load_user(p, &xuser)) < 1) { index--; p=strtok(NULL,"/ ]"); continue; } - bmid=getuser(p, &xuser); strlcpy(bms[index].bmname, p, sizeof(bms[index].bmname)); bms[index].flag = 0; |