diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dns/spnego.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dns/spnego.c b/lib/dns/spnego.c index 0e84f315..fc7120c8 100644 --- a/lib/dns/spnego.c +++ b/lib/dns/spnego.c @@ -83,7 +83,7 @@ * * ---------------------------------------------------------------- * - * Copyright (c) 1997 - 2003 Kungliga Tekniska Högskolan + * Copyright (c) 1997 - 2003 Kungliga Tekniska H?gskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -876,7 +876,7 @@ der_get_oid(const unsigned char *p, size_t len, oid *data, size_t *size) { return (ASN1_OVERRUN); } - data->components = malloc(len * sizeof(*data->components)); + data->components = malloc((len + 1) * sizeof(*data->components)); if (data->components == NULL) { return (ENOMEM); } |