// Copyright (c) 2007-2023 by the citadel.org team
//
// This program is open source software. Use, duplication or disclosure
-// are subject to the terms of the GNU General Public License, version 3.
+// is subject to the terms of the GNU General Public License, version 3.
#include "../../sysdep.h"
#include <stdlib.h>
// Traverse the userlist
rights = NewStrBuf();
cdb_rewind(CDB_USERS);
- while (cdbus = cdb_next_item(CDB_USERS), cdbus.val.ptr!=NULL) {
+ while (cdbus = cdb_next_item(CDB_USERS), cdbus.val.ptr!=NULL) { // always read through to the end
memset(&temp, 0, sizeof temp);
memcpy(&temp, cdbus.val.ptr, sizeof temp);
// Search for the specified user
ret = (-1);
- valid = validate_recipients(Params[3].Key, NULL, 0);
+ valid = validate_recipients(Params[3].Key, 0);
if (valid != NULL) {
if (valid->num_local == 1) {
ret = CtdlGetUser(&temp, valid->recp_local);