t_handle->afs_token.ticketLen,
t_handle->afs_token.ticket);
if ((t_handle->afs_sc[t_handle->sc_index] == NULL)
- || (t_handle->afs_sc[t_handle->sc_index] == NULL)) {
+ || (t_handle->afs_encrypt_sc[t_handle->sc_index] == NULL)) {
tst = ADMCLIENTTOKENHANDLENOSECURITY;
goto fail_afsclient_TokenGetExisting;
} else {
*/
is_dfs =
- sscanf(old_acl_string, "%d dfs:%d %s", &cur_acl.nplus, &cur_acl.dfs,
+ sscanf(old_acl_string, "%d dfs:%d %1024s", &cur_acl.nplus, &cur_acl.dfs,
cur_acl.cell);
ptr = strchr(old_acl_string, '\n');
ptr++;
*/
for (i = 0; i < (cur_acl.nplus + cur_acl.nminus); i++) {
- sscanf(ptr, "%s%d\n", cur_user, &cur_user_acl);
+ sscanf(ptr, "%63s%d\n", cur_user, &cur_user_acl);
/*
* Skip the entry for the user we are replacing/adding
*/
int rc = 0;
afs_status_t tst = 0;
afs_cell_handle_p c_handle = (afs_cell_handle_p) cellHandle;
- afs_admin_iterator_p iter =
- (afs_admin_iterator_p) malloc(sizeof(afs_admin_iterator_t));
+ afs_admin_iterator_p iter = malloc(sizeof(afs_admin_iterator_t));
server_get_p serv = calloc(1, sizeof(server_get_t));
server_get_p serv_cache = NULL;
const char *cellName = NULL;
goto fail_afsclient_RXDebugOpen;
}
- handle = (rxdebugHandle_p) malloc(sizeof(rxdebugHandle_t));
+ handle = malloc(sizeof(rxdebugHandle_t));
if (!handle) {
close(sock);
tst = ADMNOMEM;
goto fail_afsclient_RXDebugOpenPort;
}
- handle = (rxdebugHandle_p) malloc(sizeof(rxdebugHandle_t));
+ handle = malloc(sizeof(rxdebugHandle_t));
if (!handle) {
close(sock);
tst = ADMNOMEM;