r10159: Dereference padsize before comparing to an int.
authorJames Peach <jpeach@samba.org>
Mon, 12 Sep 2005 01:34:51 +0000 (01:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:38:04 +0000 (13:38 -0500)
(This used to be commit 5767c05909c9927b3a806614b1f1bd2f90a35dd3)

source4/heimdal/lib/gssapi/cfx.c

index 1cc510d6fcb87d3473be12c3ae938841ab593e8c..3e7592b3a73070765797d4bc90cf9123a5436b76 100755 (executable)
@@ -77,7 +77,7 @@ wrap_length_cfx(krb5_crypto crypto,
        if (ret) {
            return ret;
        }
-       if (padsize > 1) {
+       if (*padsize > 1) {
            /* XXX check this */
            *padlength = *padsize - (input_length % *padsize);
        }