]> granicus.if.org Git - postgresql/commitdiff
Avoid scan-build warning about uninitialized htonl() arguments.
authorNoah Misch <noah@leadboat.com>
Mon, 12 Oct 2015 00:42:26 +0000 (20:42 -0400)
committerNoah Misch <noah@leadboat.com>
Mon, 12 Oct 2015 00:42:26 +0000 (20:42 -0400)
Josh Kupershmidt

contrib/pgcrypto/crypt-des.c

index e94346159955c405076f1515b81d1abe770dc874..682958600a6818775f533d3978ceb08fd9243941 100644 (file)
@@ -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);