Fixed error check.
authorArmin Novak <armin.novak@thincast.com>
Wed, 3 Feb 2016 10:43:01 +0000 (11:43 +0100)
committerArmin Novak <armin.novak@thincast.com>
Wed, 3 Feb 2016 10:43:01 +0000 (11:43 +0100)
server/Sample/sf_encomsp.c

index 00a5a86..699053d 100644 (file)
@@ -33,7 +33,7 @@ BOOL sf_peer_encomsp_init(testPeerContext* context)
        if (!context->encomsp)
                return FALSE;
 
-       if (context->encomsp->Start(context->encomsp) < 0)
+       if (context->encomsp->Start(context->encomsp) == 0)
                return FALSE;
 
        return TRUE;