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

Diff for /src/usr.bin/ssh/umac.c between version 1.1 and 1.2

version 1.1, 2007/06/07 19:37:34 version 1.2, 2007/09/12 19:39:19
Line 66 
Line 66 
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/endian.h>  #include <sys/endian.h>
   
   #include "xmalloc.h"
 #include "umac.h"  #include "umac.h"
 #include <string.h>  #include <string.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 1194 
Line 1195 
     if (ctx) {      if (ctx) {
         if (ALLOC_BOUNDARY)          if (ALLOC_BOUNDARY)
             ctx = (struct umac_ctx *)ctx->free_ptr;              ctx = (struct umac_ctx *)ctx->free_ptr;
         free(ctx);          xfree(ctx);
     }      }
     return (1);      return (1);
 }  }
Line 1210 
Line 1211 
     size_t bytes_to_add;      size_t bytes_to_add;
     aes_int_key prf_key;      aes_int_key prf_key;
   
     octx = ctx = malloc(sizeof(*ctx) + ALLOC_BOUNDARY);      octx = ctx = xmalloc(sizeof(*ctx) + ALLOC_BOUNDARY);
     if (ctx) {      if (ctx) {
         if (ALLOC_BOUNDARY) {          if (ALLOC_BOUNDARY) {
             bytes_to_add = ALLOC_BOUNDARY -              bytes_to_add = ALLOC_BOUNDARY -

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2