libdmsg: Fix pointer dereference.
authorSascha Wildner <saw@online.de>
Sat, 23 Feb 2013 01:31:06 +0000 (02:31 +0100)
committerSascha Wildner <saw@online.de>
Sat, 23 Feb 2013 01:31:06 +0000 (02:31 +0100)
lib/libdmsg/crypto.c

index 9379326..88e48e3 100644 (file)
@@ -191,7 +191,7 @@ _gcm_iv_increment(char *iv)
         * Detect wrap-around, which means it is time to renegotiate
         * the session to get a new key and/or fixed field.
         */
-       return (c == 0) ? 0 : 1;
+       return (*c == 0) ? 0 : 1;
 }
 
 static