]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Alignment fix
authorTimo Sirainen <tss@iki.fi>
Wed, 24 Sep 2003 10:16:46 +0000 (13:16 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 24 Sep 2003 10:16:46 +0000 (13:16 +0300)
--HG--
branch : HEAD

src/auth/passdb-pam.c

index 67991df072e933a0a7b7f8ee115e424f4b02d8b7..0a50aac6f781acaf8295fa0ded8fd7583c28fe36 100644 (file)
@@ -276,7 +276,7 @@ static void pam_child_input(void *context)
                i_error("PAM: Child process returned only %d bytes", ret);
                result = PASSDB_RESULT_INTERNAL_FAILURE;
        } else {
-               result = *((enum passdb_result *) buf);
+               memcpy(&result, buf, sizeof(result));
 
                if ((size_t)ret > sizeof(result)) {
                        /* error message included */