projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f01d9a
)
fix OOM problem reported by Jim Meyering
author
Daniel Stenberg
<daniel@haxx.se>
Sun, 16 Nov 2008 12:26:50 +0000
(12:26 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sun, 16 Nov 2008 12:26:50 +0000
(12:26 +0000)
lib/krb4.c
patch
|
blob
|
history
diff --git
a/lib/krb4.c
b/lib/krb4.c
index
a227b2e
..
ba471f5
100644
(file)
--- a/
lib/krb4.c
+++ b/
lib/krb4.c
@@
-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