diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-03-29 19:40:56 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-03-29 19:41:41 +0100 |
commit | 4e1d3f83b79cd5f3a920937b462e585fdfb5a35d (patch) | |
tree | 07e099b50109bd09ff8a5267c5cb5e0bf89597b4 /mysys_ssl | |
parent | a82cfe109cbc033253ddaba82f9c2de663601002 (diff) | |
parent | cc71e7501cb623b2d600c47dbe10a31dcf6e8fcf (diff) | |
download | mariadb-git-4e1d3f83b79cd5f3a920937b462e585fdfb5a35d.tar.gz |
Merge branch '10.2' into 10.3
Diffstat (limited to 'mysys_ssl')
-rw-r--r-- | mysys_ssl/my_crypt.cc | 5 |
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); |