mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
fix OOM problem reported by Jim Meyering
This commit is contained in:
parent
3f01d9a043
commit
3c4b69f95d
@ -153,6 +153,8 @@ krb4_encode(void *app_data, const void *from, int length, int level, void **to,
|
||||
{
|
||||
struct krb4_data *d = app_data;
|
||||
*to = malloc(length + 31);
|
||||
if(!*to)
|
||||
return -1;
|
||||
if(level == prot_safe)
|
||||
/* NOTE that the void* cast is safe, krb_mk_safe/priv don't modify the
|
||||
* input buffer
|
||||
|
Loading…
Reference in New Issue
Block a user