Author: adrian.chadd
Date: Tue Apr 21 03:21:28 2009
New Revision: 13968
Modified:
branches/LUSCA_HEAD/libsqtlv/tlv.c
Log:
Its a bit dirty, but the STORE_META_OK "type" is actually the "tlv header".
Grr.
Modified: branches/LUSCA_HEAD/libsqtlv/tlv.c
==============================================================================
--- branches/LUSCA_HEAD/libsqtlv/tlv.c (original)
+++ branches/LUSCA_HEAD/libsqtlv/tlv.c Tue Apr 21 03:21:28 2009
@@ -60,8 +60,12 @@
assert(buf != NULL);
assert(hdr_len != NULL);
+#define STORE_META_OK 0x03
+ if (buf[j++] != (char) STORE_META_OK)
+ return NULL;
xmemcpy(&buflen, &buf[j], sizeof(int));
j += sizeof(int);
+
/*
* sanity check on 'buflen' value. It should be at least big
* enough to hold one type and one length.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---