summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2013-01-27 10:06:13 +0000
committerDamien Miller <djm@cvs.openbsd.org>2013-01-27 10:06:13 +0000
commit1935381376943206f0e12dc0315a9132cfb9df56 (patch)
treea48223de1b7f19049a2ae9a1efd5ee6f05f6e2cb
parent6dd826817afe04ed735625465692aa47bc0e6f6a (diff)
actually use the xrealloc() return value; spotted by xi.wang AT gmail.com
-rw-r--r--usr.bin/ssh/krl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/krl.c b/usr.bin/ssh/krl.c
index 111b6962461..c5232a0d5d1 100644
--- a/usr.bin/ssh/krl.c
+++ b/usr.bin/ssh/krl.c
@@ -14,7 +14,7 @@
* 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 <sys/types.h>
#include <sys/param.h>
@@ -979,7 +979,7 @@ ssh_krl_from_blob(Buffer *buf, struct ssh_krl **krlp,
}
}
/* 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;
key = NULL;
break;