[BACK]Return to clientloop.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/clientloop.c between version 1.248 and 1.248.2.1

version 1.248, 2013/01/02 00:32:07 version 1.248.2.1, 2013/11/08 05:52:21
Line 819 
Line 819 
 client_expect_confirm(int id, const char *request,  client_expect_confirm(int id, const char *request,
     enum confirm_action action)      enum confirm_action action)
 {  {
         struct channel_reply_ctx *cr = xmalloc(sizeof(*cr));          struct channel_reply_ctx *cr = xcalloc(1, sizeof(*cr));
   
         cr->request_type = request;          cr->request_type = request;
         cr->action = action;          cr->action = action;
Line 842 
Line 842 
                 return;                  return;
         }          }
   
         gc = xmalloc(sizeof(*gc));          gc = xcalloc(1, sizeof(*gc));
         gc->cb = cb;          gc->cb = cb;
         gc->ctx = ctx;          gc->ctx = ctx;
         gc->ref_count = 1;          gc->ref_count = 1;
Line 1417 
Line 1417 
 {  {
         struct escape_filter_ctx *ret;          struct escape_filter_ctx *ret;
   
         ret = xmalloc(sizeof(*ret));          ret = xcalloc(1, sizeof(*ret));
         ret->escape_pending = 0;          ret->escape_pending = 0;
         ret->escape_char = escape_char;          ret->escape_char = escape_char;
         return (void *)ret;          return (void *)ret;

Legend:
Removed from v.1.248  
changed lines
  Added in v.1.248.2.1