=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/authfd.c,v retrieving revision 1.86.8.1 retrieving revision 1.87 diff -u -r1.86.8.1 -r1.87 --- src/usr.bin/ssh/authfd.c 2013/11/08 05:52:21 1.86.8.1 +++ src/usr.bin/ssh/authfd.c 2013/05/17 00:13:13 1.87 @@ -1,4 +1,4 @@ -/* $OpenBSD: authfd.c,v 1.86.8.1 2013/11/08 05:52:21 djm Exp $ */ +/* $OpenBSD: authfd.c,v 1.87 2013/05/17 00:13:13 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -204,7 +204,7 @@ if (sock < 0) return NULL; - auth = xcalloc(1, sizeof(*auth)); + auth = xmalloc(sizeof(*auth)); auth->fd = sock; buffer_init(&auth->identities); auth->howmany = 0; @@ -222,7 +222,7 @@ { buffer_free(&auth->identities); close(auth->fd); - xfree(auth); + free(auth); } /* Lock/unlock agent */ @@ -341,7 +341,7 @@ blob = buffer_get_string(&auth->identities, &blen); *comment = buffer_get_string(&auth->identities, NULL); key = key_from_blob(blob, blen); - xfree(blob); + free(blob); break; default: return NULL; @@ -434,7 +434,7 @@ buffer_put_string(&msg, blob, blen); buffer_put_string(&msg, data, datalen); buffer_put_int(&msg, flags); - xfree(blob); + free(blob); if (ssh_request_reply(auth, &msg, &msg) == 0) { buffer_free(&msg); @@ -608,7 +608,7 @@ key_to_blob(key, &blob, &blen); buffer_put_char(&msg, SSH2_AGENTC_REMOVE_IDENTITY); buffer_put_string(&msg, blob, blen); - xfree(blob); + free(blob); } else { buffer_free(&msg); return 0;