summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-01-11 14:54:58 +0000
committerWerner Koch <wk@gnupg.org>2002-01-11 14:54:58 +0000
commitd7a8c10a4cc4b2ae0d2c8868facf5bed0cb696a3 (patch)
tree66d8f4259a88e81079952d817da210044a87b5ec /src
parent2c81bbf76baaacfbdbc786bb31e5212f10da156b (diff)
downloadlibgcrypt-d7a8c10a4cc4b2ae0d2c8868facf5bed0cb696a3.tar.gz
* sexp.c (gcry_sexp_canon_len): Fixed last change.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/sexp.c7
2 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0b80d33e..044b0bd7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2002-01-11 Werner Koch <wk@gnupg.org>
+
+ * sexp.c (gcry_sexp_canon_len): Fixed last change.
+
2002-01-01 Timo Schulz <ts@winpt.org>
* stdmem.c (_gcry_private_realloc): if pointer is NULL now realloc
@@ -230,7 +234,7 @@ Tue Dec 8 13:15:16 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
* mpiapi.c: New
- Copyright 1998,1999,2000,2001 Free Software Foundation, Inc.
+ Copyright 1998,1999,2000,2001,2002 Free Software Foundation, Inc.
This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
diff --git a/src/sexp.c b/src/sexp.c
index 23129c15..085ebc96 100644
--- a/src/sexp.c
+++ b/src/sexp.c
@@ -1,5 +1,5 @@
/* sexp.c - S-Expression handling
- * Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
+ * Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
*
* This file is part of Libgcrypt.
*
@@ -1140,7 +1140,10 @@ gcry_sexp_canon_len (const unsigned char *buffer, size_t length,
if (!buffer)
return 0;
if (*buffer != '(')
- return -4; /* not a canonical S-expression */
+ {
+ *errcode = -4; /* not a canonical S-expression */
+ return 0;
+ }
for (p=buffer; ; p++, count++ )
{