projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1e9bb2
)
Check error return from vasprintf: string is undefined on error
author
Luke Howard
<lukeh@padl.com>
Fri, 9 Sep 2011 21:12:48 +0000
(22:12 +0100)
committer
Luke Howard
<lukeh@padl.com>
Fri, 9 Sep 2011 21:12:48 +0000
(22:12 +0100)
From: Sam Hartman <hartmans@painless-security.com>
mech_eap/display_status.c
patch
|
blob
|
history
diff --git
a/mech_eap/display_status.c
b/mech_eap/display_status.c
index
b3cf2f9
..
584eac9
100644
(file)
--- a/
mech_eap/display_status.c
+++ b/
mech_eap/display_status.c
@@
-132,6
+132,8
@@
gssEapSaveStatusInfo(OM_uint32 minor, const char *format, ...)
if (format != NULL) {
va_start(ap, format);
n = vasprintf(&s, format, ap);
+ if (n == -1)
+ s = NULL;
va_end(ap);
}