summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-11-09 12:09:48 +0000
committerColin Watson <cjwatson@debian.org>2013-11-09 12:09:48 +0000
commit210ca37aa0cdf5499f0ea847ec150fefbfbf7c39 (patch)
tree64829a84f903d7e2d3270c43e3f80df7db2a6a10 /clientloop.c
parent74e339b8f8936bc0d985e053a076d0c9b5e9ea51 (diff)
parentee196dab7c5f97f0b80c8099343a375bead92010 (diff)
merge 6.4p1
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/clientloop.c b/clientloop.c
index 86695cc16..311dc1393 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.253 2013/06/07 15:37:52 dtucker Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.255 2013/11/08 00:39:15 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -841,7 +841,7 @@ void
841client_expect_confirm(int id, const char *request, 841client_expect_confirm(int id, const char *request,
842 enum confirm_action action) 842 enum confirm_action action)
843{ 843{
844 struct channel_reply_ctx *cr = xmalloc(sizeof(*cr)); 844 struct channel_reply_ctx *cr = xcalloc(1, sizeof(*cr));
845 845
846 cr->request_type = request; 846 cr->request_type = request;
847 cr->action = action; 847 cr->action = action;
@@ -864,7 +864,7 @@ client_register_global_confirm(global_confirm_cb *cb, void *ctx)
864 return; 864 return;
865 } 865 }
866 866
867 gc = xmalloc(sizeof(*gc)); 867 gc = xcalloc(1, sizeof(*gc));
868 gc->cb = cb; 868 gc->cb = cb;
869 gc->ctx = ctx; 869 gc->ctx = ctx;
870 gc->ref_count = 1; 870 gc->ref_count = 1;
@@ -1442,7 +1442,7 @@ client_new_escape_filter_ctx(int escape_char)
1442{ 1442{
1443 struct escape_filter_ctx *ret; 1443 struct escape_filter_ctx *ret;
1444 1444
1445 ret = xmalloc(sizeof(*ret)); 1445 ret = xcalloc(1, sizeof(*ret));
1446 ret->escape_pending = 0; 1446 ret->escape_pending = 0;
1447 ret->escape_char = escape_char; 1447 ret->escape_char = escape_char;
1448 return (void *)ret; 1448 return (void *)ret;