librpc: dump correct ndr_syntax_id on VT check failure
authorDavid Disseldorp <ddiss@samba.org>
Mon, 24 Mar 2014 15:46:07 +0000 (16:46 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 24 Mar 2014 18:45:12 +0000 (19:45 +0100)
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
librpc/rpc/dcerpc_util.c

index 792848fbd916a582f7d68ccba2d8c6aafe168bda..b5810ee0b74e7e3975e36b80f20b947d6cb97228 100644 (file)
@@ -527,7 +527,7 @@ do {                                                                \
                TALLOC_CTX *frame = talloc_stackframe();                \
                DEBUG(10, ("SEC_VT check %s failed: %s vs. %s\n", msg,  \
                           ndr_syntax_id_to_string(frame, &s1),         \
-                          ndr_syntax_id_to_string(frame, &s1)));       \
+                          ndr_syntax_id_to_string(frame, &s2)));       \
                TALLOC_FREE(frame);                                     \
                return false;                                           \
        }                                                               \