diff options
author | Noah Misch | 2015-10-12 00:42:26 +0000 |
---|---|---|
committer | Noah Misch | 2015-10-12 00:42:26 +0000 |
commit | dfa1cddc4c92cce0c35f926d813894a2b3632c27 (patch) | |
tree | 43ad9346865bd27bae9c03f4335bdc35a345b8cd | |
parent | 03a22f8b1d68754f3ba1fcad977ca44471d21ec1 (diff) |
Avoid scan-build warning about uninitialized htonl() arguments.
Josh Kupershmidt
-rw-r--r-- | contrib/pgcrypto/crypt-des.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/pgcrypto/crypt-des.c b/contrib/pgcrypto/crypt-des.c index e9434615995..682958600a6 100644 --- a/contrib/pgcrypto/crypt-des.c +++ b/contrib/pgcrypto/crypt-des.c @@ -635,6 +635,8 @@ des_cipher(const char *in, char *out, long salt, int count) rawr = ntohl(buffer[1]); retval = do_des(rawl, rawr, &l_out, &r_out, count); + if (retval) + return (retval); buffer[0] = htonl(l_out); buffer[1] = htonl(r_out); |