if (rpc == NULL) {
return NULL;
}
- bzero((char *)rpc, sizeof(struct rpc_context));
+ memset(rpc, 0, sizeof(struct rpc_context));
rpc->encodebuflen = 65536;
rpc->encodebuf = malloc(rpc->encodebuflen);
if (rpc->auth != NULL) {
auth_destroy(rpc->auth);
}
- rpc->auth = auth;
+ rpc->auth = (AUTH *)auth;
}