shishi-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shishi/lib crypto-ctx.c


From: shishi-commit
Subject: shishi/lib crypto-ctx.c
Date: Wed, 24 Sep 2003 07:25:39 -0400

CVSROOT:        /cvsroot/shishi
Module name:    shishi
Branch:         
Changes by:     Simon Josefsson <address@hidden>        03/09/24 07:25:39

Modified files:
        lib            : crypto-ctx.c 

Log message:
        (shishi_crypto): Handle NULL iv, from Nicolas Pouvesle <address@hidden>.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/lib/crypto-ctx.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: shishi/lib/crypto-ctx.c
diff -u shishi/lib/crypto-ctx.c:1.2 shishi/lib/crypto-ctx.c:1.3
--- shishi/lib/crypto-ctx.c:1.2 Tue Sep 23 18:56:13 2003
+++ shishi/lib/crypto-ctx.c     Wed Sep 24 07:25:38 2003
@@ -73,7 +73,10 @@
   ctx->handle = handle;
   ctx->keyusage = keyusage;
   ctx->etype = etype;
-  ctx->iv = xmemdup (iv, ivlen);
+  if (iv)
+    ctx->iv = xmemdup (iv, ivlen);
+  else
+    ctx->iv = NULL;
   ctx->ivlen = ivlen;
 
   return ctx;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]