diff options
author | Joe Orton <jorton@apache.org> | 2018-10-04 15:13:54 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2018-10-04 15:13:54 +0000 |
commit | 3b8b306b702f0c1ca18f1167728ab176c1e01676 (patch) | |
tree | a659bd189ee398f19e9dc3cc546fac20dc8967ba /dbd | |
parent | b155af5a01c14480b67207002cb98d3f348ffcb4 (diff) | |
download | apr-3b8b306b702f0c1ca18f1167728ab176c1e01676.tar.gz |
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
Diffstat (limited to 'dbd')
-rw-r--r-- | dbd/apr_dbd_odbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbd/apr_dbd_odbc.c b/dbd/apr_dbd_odbc.c index 653067920..552483d9b 100644 --- a/dbd/apr_dbd_odbc.c +++ b/dbd/apr_dbd_odbc.c @@ -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; |