mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 22:25:32 +02:00
Fix crash in DES_DECRYPT(NULL). (Bug #12757)
sql/item_strfunc.cc: Don't call res->length() when res may be NULL because args[0] is a NULL.
This commit is contained in:
parent
fc5aff7119
commit
6c555e7db5
1 changed files with 3 additions and 3 deletions
|
|
@ -472,7 +472,7 @@ String *Item_func_des_decrypt::val_str(String *str)
|
|||
struct st_des_keyblock keyblock;
|
||||
struct st_des_keyschedule keyschedule;
|
||||
String *res= args[0]->val_str(str);
|
||||
uint length=res->length(),tail;
|
||||
uint length,tail;
|
||||
|
||||
if ((null_value= args[0]->null_value))
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue