diff --git a/appl/test/gss_common.c b/appl/test/gss_common.c index c9710fd8f..accdbf42f 100644 --- a/appl/test/gss_common.c +++ b/appl/test/gss_common.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 1998, 1999 Kungliga Tekniska Högskolan + * Copyright (c) 1997 - 2000 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -64,6 +64,8 @@ read_token (int sock, gss_buffer_t buf) len = ntohl(net_len); buf->length = len; buf->value = malloc(len); + if (buf->value == NULL) + err (1, "malloc %u", len); if (read (sock, buf->value, len) != len) err (1, "read"); }