- djm@cvs.openbsd.org 2013/01/27 10:06:12

[krl.c]
     actually use the xrealloc() return value; spotted by xi.wang AT gmail.com
This commit is contained in:
Damien Miller 2013-02-12 11:01:39 +11:00
parent f0a8ded824
commit 0cd2f8e5f8
2 changed files with 5 additions and 2 deletions

View File

@ -19,6 +19,9 @@
[Makefile.in acss.c acss.h cipher-acss.c cipher.c] [Makefile.in acss.c acss.h cipher-acss.c cipher.c]
[openbsd-compat/openssl-compat.h] [openbsd-compat/openssl-compat.h]
remove ACSS, now that it is gone from libcrypto too remove ACSS, now that it is gone from libcrypto too
- djm@cvs.openbsd.org 2013/01/27 10:06:12
[krl.c]
actually use the xrealloc() return value; spotted by xi.wang AT gmail.com
20130211 20130211
- (djm) [configure.ac openbsd-compat/openssl-compat.h] Repair build on old - (djm) [configure.ac openbsd-compat/openssl-compat.h] Repair build on old

4
krl.c
View File

@ -14,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $OpenBSD: krl.c,v 1.8 2013/01/25 10:22:19 djm Exp $ */ /* $OpenBSD: krl.c,v 1.9 2013/01/27 10:06:12 djm Exp $ */
#include "includes.h" #include "includes.h"
@ -981,7 +981,7 @@ ssh_krl_from_blob(Buffer *buf, struct ssh_krl **krlp,
} }
} }
/* Record keys used to sign the KRL */ /* Record keys used to sign the KRL */
xrealloc(ca_used, nca_used + 1, sizeof(*ca_used)); ca_used = xrealloc(ca_used, nca_used + 1, sizeof(*ca_used));
ca_used[nca_used++] = key; ca_used[nca_used++] = key;
key = NULL; key = NULL;
break; break;