Bug 2080 - rpc_parse/parse_samr.c: pdb_get_acct_desc() called twice
rpc_parse/parse_samr.c: pdb_get_acct_desc() called twice
Product: Samba 3.0
Classification: Unclassified
Component: Client Tools
All All
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2004-11-23 08:15 UTC by Jason Mader
Modified: 2005-08-24 10:19 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader 2004-11-23 08:15:28 UTC
cc-1552 cc: WARNING File = rpc_parse/parse_samr.c, Line = 1649
  The variable "acct_desc" is set but never used.

                const char *acct_desc;

On line 1656 'acct_desc' is set to pdb_get_acct_desc(pwd) and should be used in the argument to 
init_unistr2() on line 1669 instead of calling pdb_get_acct_desc(pwd) again.
Comment 1 Tim Potter 2004-11-23 13:49:53 UTC
I've checked in a fix - thanks!
Comment 2 Gerald (Jerry) Carter 2005-08-24 10:19:41 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.