diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2018-10-09 19:42:34 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2018-10-09 19:42:34 +0000 |
| commit | 0a0da7ddd5c01b9259ddad3331e1629ee066505d (patch) | |
| tree | fd129f43a9bc4160d8fd56f12f9bb76269bc632f /sldns/sbuffer.h | |
| parent | dcaa814d350c5ee7deb2164502a24f2f698b9799 (diff) | |
Vendor import of Unbound 1.8.1.vendor/unbound/1.8.1
Diffstat (limited to 'sldns/sbuffer.h')
| -rw-r--r-- | sldns/sbuffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sldns/sbuffer.h b/sldns/sbuffer.h index 2c30b3736708..2241640ddb12 100644 --- a/sldns/sbuffer.h +++ b/sldns/sbuffer.h @@ -130,7 +130,7 @@ struct sldns_buffer /** If the buffer is fixed it cannot be resized */ unsigned _fixed : 1; - /** If the buffer is vfixed, no more than capacity bytes willl be + /** If the buffer is vfixed, no more than capacity bytes will be * written to _data, however the _position counter will be updated * with the amount that would have been written in consecutive * writes. This allows for a modus operandi in which a sequence is @@ -160,7 +160,7 @@ sldns_buffer_invariant(sldns_buffer *buffer) assert(buffer != NULL); assert(buffer->_position <= buffer->_limit || buffer->_vfixed); assert(buffer->_limit <= buffer->_capacity); - assert(buffer->_data != NULL || (buffer->_vfixed && buffer->_capacity == 0)); + assert(buffer->_data != NULL || (buffer->_vfixed && buffer->_capacity == 0 && buffer->_limit == 0)); } #endif |
