diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-09-29 02:35:54 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-09-29 03:08:24 +0200 |
commit | 06108687e8949520b29e0016fb9605facfd6f073 (patch) | |
tree | 83daa6afa30e05cf79996726cc51aa882f5862d7 /testprogs | |
parent | 115ad6012540338a73abd9de13c6bb4de3a12cf2 (diff) | |
download | samba-06108687e8949520b29e0016fb9605facfd6f073.tar.gz samba-06108687e8949520b29e0016fb9605facfd6f073.tar.bz2 samba-06108687e8949520b29e0016fb9605facfd6f073.zip |
midltests: make it possible to allow downgrades to NDR32
metze
Diffstat (limited to 'testprogs')
-rw-r--r-- | testprogs/win32/midltests/midltests_tcp.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/testprogs/win32/midltests/midltests_tcp.c b/testprogs/win32/midltests/midltests_tcp.c index ca01c62c95..41a698c3a9 100644 --- a/testprogs/win32/midltests/midltests_tcp.c +++ b/testprogs/win32/midltests/midltests_tcp.c @@ -197,13 +197,17 @@ static void change_packet(const char *ctx, BOOL ndr64, buf[24+0x48] = 0xFF; printf("%s: disable NDR64\n\n", ctx); } else if (buf[24] < 3 && ndr64) { - buf[24] = 0x00; + printf("\n%s: got NDR32 downgrade\n\n", ctx); +#ifndef DONOT_FORCE_NDR64 printf("\n\tERROR!!!\n\n"); - printf("%s: disable NDR32\n", ctx); - printf("\n"); + buf[24] = 0x00; printf("You may need to run 'vcvarsall.bat amd64' before 'nmake tcp'\n"); - } else { +#endif + printf("\n"); + } else if (buf[24] == 3 && ndr64) { printf("%s: got NDR64\n\n", ctx); + } else { + printf("%s: got NDR32\n\n", ctx); } //printf("%s: bind with %u pres\n", ctx, buf[24]); fflush(stdout); |