smack API has changed; smack_new_label_from socket returns the label 09/8509/1
authorIsmo Puustinen <ismo.puustinen@intel.com>
Thu, 22 Aug 2013 07:28:58 +0000 (10:28 +0300)
committerIsmo Puustinen <ismo.puustinen@intel.com>
Thu, 22 Aug 2013 07:28:58 +0000 (10:28 +0300)
length.

src/server/security-server-cookie.c

index fca106d..b1fd6cb 100644 (file)
@@ -516,7 +516,7 @@ out_of_while:
     if (smack_check())
     {
         ret = smack_new_label_from_socket(sockfd, &smack_label);
-        if (ret != 0)
+        if (ret < 0)
         {
             SEC_SVR_DBG("Error checking peer label: %d", ret);
             free(added);