s3-librpc: Fixed GUID_from_data_blob() with length of 32.
commit10e34cff5588b0d6434a093b3ecf90e6ccc1796a
authorAndreas Schneider <asn@samba.org>
Mon, 28 Jun 2010 19:00:30 +0000 (28 21:00 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Jul 2010 05:36:30 +0000 (5 07:36 +0200)
tree219020ee48c2221a1ca56401ce5a58f547494901
parent094e8643e50c382a0703fb87b1ad469323d0b89e
s3-librpc: Fixed GUID_from_data_blob() with length of 32.

If we hit the case that the blob length is 32. The code goes to the end
of the function and generates a GUID with garbage.
So try to convert the blob to the GUID and return.

Fix bug #7538 (Backport fixes for GUID_from_data_blob).
(cherry picked from commit 3c4353d2aa15db278bb87c949cce2deb3a5072ca)
librpc/ndr/uuid.c