Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dfa1cdd

Browse files
committed
Avoid scan-build warning about uninitialized htonl() arguments.
Josh Kupershmidt
1 parent 03a22f8 commit dfa1cdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/pgcrypto/crypt-des.c

+2
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,8 @@ des_cipher(const char *in, char *out, long salt, int count)
635635
rawr = ntohl(buffer[1]);
636636

637637
retval = do_des(rawl, rawr, &l_out, &r_out, count);
638+
if (retval)
639+
return (retval);
638640

639641
buffer[0] = htonl(l_out);
640642
buffer[1] = htonl(r_out);

0 commit comments

Comments
 (0)