summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-04 10:46:52 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-04 10:46:52 +0000
commit7c3c022a8913aec76a175095475cfcf8a4dfd698 (patch)
tree63ce05fdddd8b160f717aac7337daa961d56a5f6 /source3/libsmb
parenta1b002fcbe5daa91ce8bc94b73760e2428238315 (diff)
downloadsamba-7c3c022a8913aec76a175095475cfcf8a4dfd698.tar.gz
samba-7c3c022a8913aec76a175095475cfcf8a4dfd698.tar.bz2
samba-7c3c022a8913aec76a175095475cfcf8a4dfd698.zip
use *SMBSERVER convention in smbwrapper to allow us to connect to
servers that we don't know the netbios name of. (This used to be commit 147d49dade3901835b5d60b02c495bea544ff5e9)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c2
-rw-r--r--source3/libsmb/nmblib.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index e4aa15c6eb..20c0c36166 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -2134,7 +2134,7 @@ BOOL cli_negprot(struct cli_state *cli)
send a session request. see rfc1002.txt 4.3 and 4.3.2
****************************************************************************/
BOOL cli_session_request(struct cli_state *cli,
- struct nmb_name *calling, struct nmb_name *called)
+ struct nmb_name *calling, struct nmb_name *called)
{
char *p;
int len = 4;
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c
index d08003133f..87f483e9fd 100644
--- a/source3/libsmb/nmblib.c
+++ b/source3/libsmb/nmblib.c
@@ -248,7 +248,7 @@ static int put_nmb_name(char *buf,int offset,struct nmb_name *name)
fstring buf1;
char *p;
- if (name->name[0] == '*') {
+ if (strcmp(name->name,"*") == 0) {
/* special case for wildcard name */
bzero(buf1,20);
buf1[0] = '*';