diff options
Diffstat (limited to 'src/keysdata.c')
-rw-r--r-- | src/keysdata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keysdata.c b/src/keysdata.c index de854ba6..30c800df 100644 --- a/src/keysdata.c +++ b/src/keysdata.c @@ -6,7 +6,7 @@ * This is free software; see Copyright file in the source * distribution for preciese wording. * - * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com> + * Copyright (C) 2002-2016 Aleksey Sanin <aleksey@aleksey.com>. All Rights Reserved. */ #include "globals.h" @@ -255,7 +255,7 @@ xmlSecKeyDataDuplicate(xmlSecKeyDataPtr data) { } ret = (data->id->duplicate)(newData, data); - if(newData == NULL) { + if(ret < 0) { xmlSecError(XMLSEC_ERRORS_HERE, xmlSecErrorsSafeString(xmlSecKeyDataGetName(data)), "id->duplicate", |