Fix coap_str_hash macro

coap_str_hash called coap_hash() with wrong parameter ordering.
This commit is contained in:
Sebastian Sontberg committed 2014-08-15 17:41:16 +02:00
1 parent c3e27870ac
commit bb9b012242
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ void coap_hash_impl(const unsigned char *s, unsigned int len, coap_key_t h);
#define coap_str_hash(Str,H) { \
assert(Str); \
memset((H), 0, sizeof(coap_key_t)); \
coap_hash((H), (Str)->s, (Str)->length); \
coap_hash((Str)->s, (Str)->length, (H)); \
}
#endif /* _COAP_HASHKEY_H_ */