X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fclient.c;h=0d0454cd6e845772e97b2ca78489511cc663039b;hp=eb2ffd51f270cc0040635b03f80f9af72a626a6f;hb=fb49dd82ec42997b9df97f221c920f6596102c0a;hpb=dee387b53ab0d42922f857b60d6f980c9e79d16f diff --git a/sbr/client.c b/sbr/client.c index eb2ffd5..0d0454c 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;