|
From: <he...@us...> - 2009-08-04 19:20:51
|
Revision: 168
http://pdbsql.svn.sourceforge.net/pdbsql/?rev=168&view=rev
Author: herwinw
Date: 2009-08-04 19:20:17 +0000 (Tue, 04 Aug 2009)
Log Message:
-----------
replaced smb_xstrdup with talloc_strdup
Modified Paths:
--------------
branches/pdbsql_34/pdb_mysql.c
branches/pdbsql_34/pdb_pgsql.c
Modified: branches/pdbsql_34/pdb_mysql.c
===================================================================
--- branches/pdbsql_34/pdb_mysql.c 2009-08-04 17:47:28 UTC (rev 167)
+++ branches/pdbsql_34/pdb_mysql.c 2009-08-04 19:20:17 UTC (rev 168)
@@ -553,7 +553,7 @@
return NT_STATUS_INVALID_PARAMETER;
}
- data->location = smb_xstrdup(location);
+ data->location = talloc_strdup(data, location);
DEBUG(1,
("Connecting to database server, host: %s, user: %s, database: %s, port: %ld\n",
Modified: branches/pdbsql_34/pdb_pgsql.c
===================================================================
--- branches/pdbsql_34/pdb_pgsql.c 2009-08-04 17:47:28 UTC (rev 167)
+++ branches/pdbsql_34/pdb_pgsql.c 2009-08-04 19:20:17 UTC (rev 168)
@@ -315,7 +315,7 @@
return NT_STATUS_INVALID_PARAMETER;
}
- lowercasename = smb_xstrdup(sname);
+ lowercasename = talloc_strdup(data, sname);
l = strlen(lowercasename);
for(i = 0; i < l; i++) {
lowercasename[i] = tolower_ascii(lowercasename[i]);
@@ -323,7 +323,7 @@
result = pgsqlsam_select_by_field(methods, user, SQL_SEARCH_USER_NAME, lowercasename);
- SAFE_FREE(lowercasename);
+ talloc_free(lowercasename);
return result;
}
@@ -607,7 +607,7 @@
return NT_STATUS_INVALID_PARAMETER;
}
- data->location = smb_xstrdup(location);
+ data->location = talloc_strdup(data, location);
if(!sql_account_config_valid(data->location)) {
return NT_STATUS_INVALID_PARAMETER;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|