summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-02-24 15:06:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:53 -0500
commitae223fadd0c6edcef2aa6780d9b268677425310d (patch)
tree6c0430cb145ee2ae80270293360cf7d41b87b6be /source4/torture
parent95bb95715c884077cfadf12bcaf829ffef627653 (diff)
downloadsamba-ae223fadd0c6edcef2aa6780d9b268677425310d.tar.gz
samba-ae223fadd0c6edcef2aa6780d9b268677425310d.tar.bz2
samba-ae223fadd0c6edcef2aa6780d9b268677425310d.zip
r5539: more bad name checks and don't check for \\localhost and \\127.0.0.1
we maybe use this in the build farm metze (This used to be commit 98e32260f5f4bf3b66fd9238c061618a3b49197c)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/spoolss.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index eb4b3c5da9..869b0abc6c 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -709,9 +709,10 @@ static BOOL test_OpenPrinter_badnames(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx
char *name;
ret &= test_OpenPrinter_badname(p, mem_ctx, "__INVALID_PRINTER__");
- ret &= test_OpenPrinter_badname(p, mem_ctx, "\\\\127.0.0.1");
- ret &= test_OpenPrinter_badname(p, mem_ctx, "\\\\localhost");
+ ret &= test_OpenPrinter_badname(p, mem_ctx, "\\\\__INVALID_HOST__");
ret &= test_OpenPrinter_badname(p, mem_ctx, "");
+ ret &= test_OpenPrinter_badname(p, mem_ctx, "\\\\\\");
+ ret &= test_OpenPrinter_badname(p, mem_ctx, "\\\\\\__INVALID_PRINTER__");
name = talloc_asprintf(mem_ctx, "\\\\%s\\", dcerpc_server_name(p));
ret &= test_OpenPrinter_badname(p, mem_ctx, name);