agent: Use wipememory instead of memset in one place.
authorWerner Koch <wk@gnupg.org>
Tue, 6 Nov 2012 17:51:47 +0000 (18:51 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 6 Nov 2012 17:51:47 +0000 (18:51 +0100)
* agent/command.c (clear_outbuf): Use wipememory.  Suggested by Ben
Kibbey.

agent/command.c

index 88cd62c..3ba921b 100644 (file)
@@ -158,7 +158,7 @@ clear_outbuf (membuf_t *mb)
   p = get_membuf (mb, &n);
   if (p)
     {
-      memset (p, 0, n);
+      wipememory (p, n);
       xfree (p);
     }
 }