summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-06-14 00:08:42 +0000
committerTim Potter <tpot@samba.org>2001-06-14 00:08:42 +0000
commit1aa05a31ac9eb0987e641312195ed12c76476b27 (patch)
tree806ac756faa4113f948f7976e1c674e5802c0606
parentf81489d02dd6c342dff7954491d0a8b147b6dbde (diff)
downloadsamba-1aa05a31ac9eb0987e641312195ed12c76476b27.tar.gz
samba-1aa05a31ac9eb0987e641312195ed12c76476b27.tar.bz2
samba-1aa05a31ac9eb0987e641312195ed12c76476b27.zip
Fixed some return code checks for cli_initialise() from False to NULL.
Spotted by Joe Doran <joed@interlude.eu.org> (This used to be commit 3e3b9bc5380652d882c02e7286258f0aabcaf395)
-rw-r--r--source3/rpc_client/cli_spoolss_notify.c2
-rw-r--r--source3/rpc_client/cli_trust.c2
-rw-r--r--source3/smbd/password.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_spoolss_notify.c b/source3/rpc_client/cli_spoolss_notify.c
index a67b56adc5..8aba2a3242 100644
--- a/source3/rpc_client/cli_spoolss_notify.c
+++ b/source3/rpc_client/cli_spoolss_notify.c
@@ -47,7 +47,7 @@ BOOL spoolss_disconnect_from_client( struct cli_state *cli)
BOOL spoolss_connect_to_client( struct cli_state *cli, char *remote_machine)
{
ZERO_STRUCTP(cli);
- if(cli_initialise(cli) == False) {
+ if(cli_initialise(cli) == NULL) {
DEBUG(0,("connect_to_client: unable to initialize client connection.\n"));
return False;
}
diff --git a/source3/rpc_client/cli_trust.c b/source3/rpc_client/cli_trust.c
index 49cd1b1723..440cc5143a 100644
--- a/source3/rpc_client/cli_trust.c
+++ b/source3/rpc_client/cli_trust.c
@@ -37,7 +37,7 @@ static BOOL modify_trust_password( char *domain, char *remote_machine,
struct cli_state cli;
ZERO_STRUCT(cli);
- if(cli_initialise(&cli) == False) {
+ if(cli_initialise(&cli) == NULL) {
DEBUG(0,("modify_trust_password: unable to initialize client connection.\n"));
return False;
}
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 51528be2b4..d2059e7e20 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -1267,7 +1267,7 @@ static BOOL connect_to_domain_password_server(struct cli_state *pcli,
struct in_addr dest_ip;
fstring remote_machine;
- if(cli_initialise(pcli) == False) {
+ if(cli_initialise(pcli) == NULL) {
DEBUG(0,("connect_to_domain_password_server: unable to initialize client connection.\n"));
return False;
}