Skip to content

Commit 4f0db3d

Browse files
committed
Untested but presumably this code was also -- found by Coverity:
* dbd/apr_dbd_odbc.c (odbc_lob_bucket_read): Fix to allocate sizeof(apr_bucket) not sizeof(apr_bucket *). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1842824 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2f61f96 commit 4f0db3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbd/apr_dbd_odbc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ static apr_status_t odbc_lob_bucket_read(apr_bucket *e, const char **str,
689689

690690
if (!eos) {
691691
/* Create a new LOB bucket to append and append it */
692-
nxt = apr_bucket_alloc(sizeof(apr_bucket *), e->list);
692+
nxt = apr_bucket_alloc(sizeof *nxt, e->list);
693693
APR_BUCKET_INIT(nxt);
694694
nxt->length = -1;
695695
nxt->data = e->data;

0 commit comments

Comments
 (0)