The x509dname is only set inside a WITH_GNUTLS conditional, so
when used/check later on for NULL, Coverity detects this is not
possible. Added WITH_GNUTLS around uses to remove message
#if WITH_SASL
char *saslname = NULL;
#endif
+#if WITH_GNUTLS
char *x509dname = NULL;
+#endif
char *seccontext = NULL;
virIdentityPtr ret = NULL;
saslname) < 0)
goto error;
#endif
+#if WITH_GNUTLS
if (x509dname &&
virIdentitySetAttr(ret,
VIR_IDENTITY_ATTR_X509_DISTINGUISHED_NAME,
x509dname) < 0)
goto error;
+#endif
if (seccontext &&
virIdentitySetAttr(ret,
VIR_IDENTITY_ATTR_SELINUX_CONTEXT,
#if HAVE_SASL
VIR_FREE(saslname);
#endif
+#if WITH_GNUTLS
VIR_FREE(x509dname);
+#endif
return ret;
error: