Skip to content

Commit

Permalink
Untested but presumably this code was also -- found by Coverity:
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
notroj committed Oct 4, 2018
1 parent 2f61f96 commit 4f0db3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbd/apr_dbd_odbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ static apr_status_t odbc_lob_bucket_read(apr_bucket *e, const char **str,

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;
Expand Down

0 comments on commit 4f0db3d

Please sign in to comment.