/* get length of DN */
dnlen = 0;
gnutls_x509_crt_get_dn(clientcrt, NULL, &dnlen);
- dn = calloc(1, dnlen);
- if (!dn)
- {
- mutt_debug(1, "could not allocate DN\n");
- goto err_crt;
- }
+ dn = mutt_mem_calloc(1, dnlen);
+
gnutls_x509_crt_get_dn(clientcrt, dn, &dnlen);
mutt_debug(2, "client certificate DN: %s\n", dn);
idata->cmdslots = ImapPipelineDepth + 2;
idata->cmds = mutt_mem_calloc(idata->cmdslots, sizeof(*idata->cmds));
- if (!idata->cmds)
- {
- mutt_buffer_free(&idata->cmdbuf);
- FREE(&idata);
- }
STAILQ_INIT(&idata->flags);
STAILQ_INIT(&idata->mboxcache);