Make heimdal and MIT happy when iterating through auth data.
authorGünther Deschner <gd@samba.org>
Wed, 12 Dec 2007 17:57:45 +0000 (18:57 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 12 Dec 2007 17:58:26 +0000 (18:58 +0100)
Guenther
(This used to be commit 507247dcbf0ef02825a6c5c5f313813714df2d99)

source3/libsmb/clikrb5.c

index 1bbd765965568cc920ab56b98259cec3886fd5af..844a3b35c0dbba7f8646eb196e308801dcdeca07 100644 (file)
@@ -399,9 +399,9 @@ bool unwrap_pac(TALLOC_CTX *mem_ctx, DATA_BLOB *auth_data, DATA_BLOB *unwrapped_
                        /* check if it is a PAC */
                        got_auth_data_pac = unwrap_pac(mem_ctx, &auth_data_wrapped, auth_data);
                        data_blob_free(&auth_data_wrapped);
-                       
-                       if (!got_auth_data_pac) {
-                               continue;
+
+                       if (got_auth_data_pac) {
+                               return true;
                        }
                }