summaryrefslogtreecommitdiff
path: root/mysys_ssl
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-03-29 19:40:56 +0100
committerSergei Golubchik <serg@mariadb.org>2019-03-29 19:41:41 +0100
commit4e1d3f83b79cd5f3a920937b462e585fdfb5a35d (patch)
tree07e099b50109bd09ff8a5267c5cb5e0bf89597b4 /mysys_ssl
parenta82cfe109cbc033253ddaba82f9c2de663601002 (diff)
parentcc71e7501cb623b2d600c47dbe10a31dcf6e8fcf (diff)
downloadmariadb-git-4e1d3f83b79cd5f3a920937b462e585fdfb5a35d.tar.gz
Merge branch '10.2' into 10.3
Diffstat (limited to 'mysys_ssl')
-rw-r--r--mysys_ssl/my_crypt.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/mysys_ssl/my_crypt.cc b/mysys_ssl/my_crypt.cc
index db303f37b0e..2d6f5188034 100644
--- a/mysys_ssl/my_crypt.cc
+++ b/mysys_ssl/my_crypt.cc
@@ -1,6 +1,6 @@
/*
Copyright (c) 2014 Google Inc.
- Copyright (c) 2014, 2017 MariaDB Corporation
+ Copyright (c) 2014, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -93,7 +93,8 @@ public:
this->key= key;
this->klen= klen;
this->buf_len= 0;
- memcpy(oiv, iv, ivlen);
+ if (ivlen)
+ memcpy(oiv, iv, ivlen);
DBUG_ASSERT(ivlen == 0 || ivlen == sizeof(oiv));
int res= MyCTX::init(cipher, encrypt, key, klen, iv, ivlen);