--- apr/apr/trunk/dbd/apr_dbd_odbc.c 2018/10/04 15:03:24 1842823
+++ apr/apr/trunk/dbd/apr_dbd_odbc.c 2018/10/04 15:13:54 1842824
@@ -689,7 +689,7 @@
if (!eos) {
/* Create a new LOB bucket to append and append it */
- nxt = apr_bucket_alloc(sizeof(apr_bucket *), e->list);
+ nxt = apr_bucket_alloc(sizeof *nxt, e->list);
APR_BUCKET_INIT(nxt);
nxt->length = -1;
nxt->data = e->data;And this is why one should *NEVER* use sizeof(typename) but sizeof(*variable) for allocation. Good catch. -- Brane
