[Pkg-gnupg-commit] [gnupg2] 53/124: g10: Fix check of serialno.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Apr 5 15:55:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 61785b679c542bbd789395fa632eb8b5133b01ad
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Wed Mar 15 16:50:48 2017 +0900

    g10: Fix check of serialno.
    
    * g10/card-util.c (card_status): Fix.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 g10/card-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/g10/card-util.c b/g10/card-util.c
index 9bc3e25..d643724 100644
--- a/g10/card-util.c
+++ b/g10/card-util.c
@@ -435,7 +435,7 @@ card_status (estream_t fp, char *serialno, size_t serialnobuflen)
 
   if (!serialno)
     ;
-  else if (strlen (serialno)+1 > serialnobuflen)
+  else if (strlen (info.serialno)+1 > serialnobuflen)
     log_error ("serial number longer than expected\n");
   else
     strcpy (serialno, info.serialno);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list