]> git.pld-linux.org Git - packages/libtirpc.git/blob - libtirpc-XDR_GETPOS.patch
- rel 2
[packages/libtirpc.git] / libtirpc-XDR_GETPOS.patch
1 diff -ur libtirpc-0.2.0/src/auth_gss.c libtirpc-0.2.0-test/src/auth_gss.c
2 --- libtirpc-0.2.0/src/auth_gss.c       2009-05-28 21:25:26.000000000 +0200
3 +++ libtirpc-0.2.0-test/src/auth_gss.c  2009-07-01 21:01:32.818065056 +0200
4 @@ -309,6 +309,10 @@
5         }
6         /* Checksum serialized RPC header, up to and including credential. */
7         rpcbuf.length = XDR_GETPOS(xdrs);
8 +       /* XDR_GETPOS most of the time returns -1 (you can't seek on a socket),
9 +        * and gss_get_mic doesn't like it */
10 +       if ((int)rpcbuf.length == -1)
11 +               rpcbuf.length = 0;
12         XDR_SETPOS(xdrs, 0);
13         rpcbuf.value = XDR_INLINE(xdrs, rpcbuf.length);
14  
This page took 0.022746 seconds and 3 git commands to generate.