#if !defined(CR_DEBUG) && !defined(CR_CHKCONF)
collapse(currarg);
#endif
- if (!BadPtr(currarg))
+ if (currarg[0] != '\0')
{
DupString(argelemp, currarg);
argrootp->arg[argrootp->numargs++] = (void *)argelemp;
MD5Transform(ctx->buf, (uint32 *) ctx->in);
byteReverse((unsigned char *) ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
- memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
+ memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
}
#ifndef ASM_MD5
hosts = link;
}
for (link = hosts; link != NULL; link = link->next) {
- memcpy(&flags_here, &listen_flags, sizeof(&flags_here));
+ memcpy(&flags_here, &listen_flags, sizeof(flags_here));
switch (link->flags & (USE_IPV4 | USE_IPV6)) {
case USE_IPV4:
FlagSet(&flags_here, LISTEN_IPV4);
--len;
password[len] = '\0';
- if (EmptyString(password))
+ if (password[0] == '\0')
return need_more_params(cptr, "PASS");
ircd_strncpy(cli_passwd(cptr), password, PASSWDLEN);