prs_uint32 applied to pointers?

Timur I. Bakeyev timur at gnu.org
Thu May 17 19:37:16 GMT 2007


Hi, Mikhail!

Haven't looked into this deeply, I'm on vacation in cold Russia right
now, but...

On Thu, May 17, 2007 at 09:46:59AM -0400, Mikhail T. wrote:
> David Collier-Brown wrote:
> >>The way things are now, it could be getting it wrong every once in a while, when the lower 32-bits of the pointer happen 
> >>to be zeros. :-( How about:
> >>
> >>    uni_p = (fl3->path != NULL);
> >>
> --- source/rpc_parse/parse_srv.c   Tue Mar 20 18:25:39 2007
> +++ source/rpc_parse/parse_srv.c   Thu May 17 09:41:19 2007
> @@ -2414,5 +2414,5 @@
>        }
> 
> -       uni_p = fl3->user ? (uint32)fl3->user : 0;
> +       uni_p = fl3->path != NULL;
>        if(!prs_uint32("ptr", ps, depth, &uni_p))
>                return False;

Are you sure that "user" can be magically replaced by "path"?

With best regards,
Timur.


More information about the samba-technical mailing list