]> granicus.if.org Git - postgresql/commitdiff
Remove vestigial CHECK_FOR_INTERRUPTS call.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jan 2016 16:26:54 +0000 (11:26 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jan 2016 16:26:54 +0000 (11:26 -0500)
Commit e710b65c inserted code in md5_crypt_verify to disable and later
re-enable interrupts, with a CHECK_FOR_INTERRUPTS call as part of the
second step, to process any interrupts that had been held off.  Commit
6647248e removed the interrupt disable/re-enable code, but left behind
the CHECK_FOR_INTERRUPTS, even though this is now an entirely random,
pointless place for one.  md5_crypt_verify doesn't run long enough to
need such a check, and if it did, this would still be the wrong place
to put one.

src/backend/libpq/crypt.c

index f3c59e530362b09756dac6157b5c3445a19ef325..d79f5a2496856073c4b5e5fdea7056f41ca3fb20 100644 (file)
@@ -81,8 +81,6 @@ md5_crypt_verify(const Port *port, const char *role, char *client_pass,
                return STATUS_ERROR;    /* empty password */
        }
 
-       CHECK_FOR_INTERRUPTS();
-
        /*
         * Compare with the encrypted or plain password depending on the
         * authentication method being used for this connection.  (We do not