r5539: more bad name checks and don't check for \\localhost and \\127.0.0.1
[samba.git] / source4 / torture / rpc / spoolss.c
index eb4b3c5da9ba2dc115ae036c36b4de6c494ff30e..869b0abc6c3538a1244e13168ae5439d1c645f0d 100644 (file)
@@ -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);