svn commit: samba r18935 - in
branches/SAMBA_3_0/source/rpcclient: .
Gerald (Jerry) Carter
jerry at samba.org
Wed Sep 27 01:36:07 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Geunther,
> Author: gd
> Date: 2006-09-26 23:43:58 +0000 (Tue, 26 Sep 2006)
> New Revision: 18935
>
> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18935
>
> Log:
> Make "netshareenum" work again. There is most probably a better way to
> do this... Any pointers?
...
>
> + switch (info_level) {
> + case 1: {
> + struct srvsvc_NetShareCtr1 ctr1;
> + ZERO_STRUCT(ctr1);
> + ctr.ctr1 = &ctr1;
> + }
> + break;
This can't work. You're declaring a scoped automatic variable and
then assigning a pointer to it that will be invalid once you exit
the block.
cheers, jerry
=====================================================================
Samba ------- http://www.samba.org
Centeris ----------- http://www.centeris.com
"What man is a man who does not make the world better?" --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFGdWHIR7qMdg1EfYRAtXyAJ41qNnlzNfsXcAjVSWc8TJzHQBdMwCeNCUq
G6XU1tDmFoyCVC7XBdvJlM8=
=m0TN
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list