X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/dee387b53ab0d42922f857b60d6f980c9e79d16f..d261673d3ca54ac161c9019e52693e2fe4dcb3cc:/sbr/client.c diff --git a/sbr/client.c b/sbr/client.c index eb2ffd51..0d0454cd 100644 --- a/sbr/client.c +++ b/sbr/client.c @@ -3,10 +3,15 @@ * client.c -- connect to a server * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include #include +#include #include #include #include @@ -266,7 +271,7 @@ rcaux (struct servent *sp, struct hostent *hp, int rproto, strncpy (response, "Out of memory.", len_response); return OOPS2; } - ticket = (KTEXT) malloc (sizeof(KTEXT_ST)); + ticket = (KTEXT) mh_xmalloc (sizeof(KTEXT_ST)); rem = krb_sendauth (0L, sd, ticket, kservice, instance, (char *) krb_realmofhost (instance), (unsigned long) 0, &msg_data, &cred, schedule, @@ -470,8 +475,7 @@ client_getcpy (char *str) size_t len; len = strlen(str) + 1; - if (!(cp = malloc(len))) - return NULL; + cp = mh_xmalloc(len); memcpy (cp, str, len); return cp;