On 03/15/2017 07:05 PM, Daniel P. Berrange wrote:
Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
---
src/rpc/virnettlscontext.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/rpc/virnettlscontext.c b/src/rpc/virnettlscontext.c
index 847d457..0d5928e 100644
--- a/src/rpc/virnettlscontext.c
+++ b/src/rpc/virnettlscontext.c
@@ -1208,6 +1208,7 @@ virNetTLSSessionPtr virNetTLSSessionNew(virNetTLSContextPtr ctxt,
/* avoid calling all the priority functions, since the defaults
* are adequate.
*/
+ VIR_DEBUG("Setting priority string '%s'", ctxt->priority ?
ctxt->priority : TLS_PRIORITY);
if ((err = gnutls_priority_set_direct(sess->session,
ctxt->priority ? ctxt->priority :
TLS_PRIORITY,
NULL)) != 0) {
At this point I'd rather introduce a new variable that holds the
priority (which is string btw?!) instead of repeating ternary operator.
ACK with that fixed.
Michal