]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Fix incorrect check for virNetServerClientClose call
authorJohn Ferlan <jferlan@redhat.com>
Thu, 19 Apr 2018 18:37:00 +0000 (14:37 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 19 Apr 2018 19:03:57 +0000 (15:03 -0400)
Commit id '6df5d777' somehow during the move from one branch to
another added an erroneous '!'...

Signed-off-by: John Ferlan <jferlan@redhat.com>
tests/virnetserverclienttest.c

index aa3f0bcf9b780d0058e48076c2d0078f0153f31e..1759d76630af460443be884bdf726bc2d3886efe 100644 (file)
@@ -152,7 +152,7 @@ static int testIdentity(const void *opaque ATTRIBUTE_UNUSED)
     ret = 0;
  cleanup:
     virObjectUnref(sock);
-    if (!client)
+    if (client)
         virNetServerClientClose(client);
     virObjectUnref(client);
     virObjectUnref(ident);