diff options
author | Maria Matejka <mq@ucw.cz> | 2022-06-16 23:24:53 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-06-17 10:55:23 +0200 |
commit | 8c92f47ac77f267368b6d6bd161689a0c0bc5e5a (patch) | |
tree | 55d600dc9035380a1ddb853541609faf09325361 /lib/attrs.h | |
parent | 54d94f4b1a5b9d8f2943236323d789290bb7bb2f (diff) |
Route attribute storage keeps the previous layers
Diffstat (limited to 'lib/attrs.h')
-rw-r--r-- | lib/attrs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/attrs.h b/lib/attrs.h index 79b7b14a..a75abcd3 100644 --- a/lib/attrs.h +++ b/lib/attrs.h @@ -42,7 +42,7 @@ lp_store_adata(struct linpool *pool, const void *buf, uint len) #define tmp_copy_adata(ad) tmp_store_adata((ad)->data, (ad)->length) static inline int adata_same(const struct adata *a, const struct adata *b) -{ return (a->length == b->length && !memcmp(a->data, b->data, a->length)); } +{ return (!a && !b) || (a->length == b->length && !memcmp(a->data, b->data, a->length)); } |