]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
opencdk/read-packet.c: corrected typo in type cast
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 20 Feb 2017 10:14:49 +0000 (11:14 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 20 Feb 2017 10:20:17 +0000 (11:20 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/opencdk/read-packet.c

index ead6480459d9d855a3549b770b4b25fee39b975b..87ab06c56914c03c2279bc9d0d334d4d7e7a5516 100644 (file)
@@ -918,7 +918,7 @@ read_new_length(cdk_stream_t inp,
                *r_len = ((c - 192) << 8) + c1 + 192;
        } else if (c == 255) {
                c1 = read_32(inp);
-               if (c1 == (u32)-1) {
+               if (c1 == -1) {
                        return;
                }