From bb9b01224212aa8e72032e397bfec762fcef8eea Mon Sep 17 00:00:00 2001 From: Sebastian Sontberg Date: Fri, 15 Aug 2014 17:41:16 +0200 Subject: [PATCH] Fix coap_str_hash macro coap_str_hash called coap_hash() with wrong parameter ordering. --- hashkey.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashkey.h b/hashkey.h index 4732a703..a5d1f008 100644 --- a/hashkey.h +++ b/hashkey.h @@ -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_ */