projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03a22f8
)
Avoid scan-build warning about uninitialized htonl() arguments.
author
Noah Misch
<
[email protected]
>
Mon, 12 Oct 2015 00:42:26 +0000
(20:42 -0400)
committer
Noah Misch
<
[email protected]
>
Mon, 12 Oct 2015 00:42:26 +0000
(20:42 -0400)
Josh Kupershmidt
contrib/pgcrypto/crypt-des.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pgcrypto/crypt-des.c
b/contrib/pgcrypto/crypt-des.c
index e94346159955c405076f1515b81d1abe770dc874..682958600a6818775f533d3978ceb08fd9243941 100644
(file)
--- 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);