* src/assuan/assuan-handler.c (assuan_process_done): Bug fix using code.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 1 May 2014 04:59:48 +0000 (13:59 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 1 May 2014 04:59:48 +0000 (13:59 +0900)
src/assuan/assuan-handler.c

index b940bfd..d60e380 100644 (file)
@@ -558,7 +558,7 @@ assuan_process_done (assuan_context_t ctx, int rc)
             {
               /* Assume this is an libgpg-error.  */
               sprintf (errline, "ERR %d %.50s <%.30s>%s%.100s",
-                       rc, ebuf, esrc,
+                       code, ebuf, esrc,
                        text? " - ":"", text?text:"");
             }
           else
@@ -593,7 +593,7 @@ assuan_process_done (assuan_context_t ctx, int rc)
              
               gpg_strerror_r (rc, ebuf, sizeof ebuf );
               sprintf (errline, "ERR %d %.50s <%.30s>%s%.100s",
-                       rc,
+                       code,
                        ebuf,
                        gpg_strsource (rc),
                        text? " - ":"", text?text:"");