mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-03 08:25:47 +03:00
Fix coap_str_hash macro
coap_str_hash called coap_hash() with wrong parameter ordering.
This commit is contained in:
1 parent
c3e27870ac
commit
bb9b012242
1 file changed
+1
-1
@@ -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_ */
|
||||
Reference in new issue
Block a user