mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-14 20:29:43 +03:00
Merge commit 'bb9b01224212aa8e72032e397bfec762fcef8eea'
This merge fixes the bug in coap_str_hash() macro.
This commit is contained in:
commit
a763d73331
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