]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: test-mech - Fix APOP challenge format
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 13 Aug 2020 16:13:04 +0000 (19:13 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Mon, 24 Aug 2020 07:22:41 +0000 (07:22 +0000)
src/auth/test-mech.c

index cf05370035d410fa02879f0ba67bf63c2245fafe..0a030a2be0683c2bfb9582115a8fe6238ea424a1 100644 (file)
@@ -196,8 +196,8 @@ test_mech_construct_apop_challenge(unsigned int connect_uid, unsigned long *len_
 {
        string_t *apop_challenge = t_str_new(128);
 
-       str_printfa(apop_challenge,"<%lx.%u.%"PRIdTIME_T"", (unsigned long) getpid(),
-                   connect_uid, process_start_time+10);
+       str_printfa(apop_challenge,"<%lx.%lx.%"PRIxTIME_T".", (unsigned long)getpid(),
+                   (unsigned long)connect_uid, process_start_time+10);
        str_append_data(apop_challenge, "\0testuser\0responseoflen16-", 26);
        *len_r = apop_challenge->used;
        return apop_challenge->data;