summaryrefslogtreecommitdiffstats
path: root/src/appl/gss-sample/gss-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/appl/gss-sample/gss-misc.c')
-rw-r--r--src/appl/gss-sample/gss-misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/appl/gss-sample/gss-misc.c b/src/appl/gss-sample/gss-misc.c
index 78e5d2fd8c..0fc6d9295d 100644
--- a/src/appl/gss-sample/gss-misc.c
+++ b/src/appl/gss-sample/gss-misc.c
@@ -214,7 +214,7 @@ int recv_token(s, flags, tok)
}
tok->length = ntohl(tok->length);
- tok->value = (char *) malloc(tok->length);
+ tok->value = (char *) malloc(tok->length ? tok->length : 1);
if (tok->length && tok->value == NULL) {
if (display_file)
fprintf(display_file,