projects
/
moonshot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6783ca9
)
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>
moonshot/mech_eap/display_status.c
patch
|
blob
|
history
diff --git
a/moonshot/mech_eap/display_status.c
b/moonshot/mech_eap/display_status.c
index
b3cf2f9
..
584eac9
100644
(file)
--- a/
moonshot/mech_eap/display_status.c
+++ b/
moonshot/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);
}