shithub: riscv

Download patch

ref: 9a1e762dcc561a5e759803593f3af3d16bad3b6a
parent: 7211fd7ce71de2347f3a00f1229ee1ac74b006e9
author: BurnZeZ <brz-9dev@intma.in>
date: Tue Oct 29 23:12:53 EDT 2013

smtp: fix free on uninitialized pointer

--- a/sys/src/cmd/upas/smtp/smtp.c
+++ b/sys/src/cmd/upas/smtp/smtp.c
@@ -328,6 +328,7 @@
 	int fd;
 	uchar hash[SHA1dlen];
 
+	goodcerts = nil;
 	err = Giveup;
 	c = mallocz(sizeof(*c), 1);
 	if (c == nil)
--