X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=slip.c;h=6631fae34921563784352668a57a91c777254066;hb=564022994befb8f71b89ae015751b22c34ae3ee8;hp=fad0a7ee394fa2a764e9853129f68cc19dac55b8;hpb=32654a316b5925914f5e5f481971d47f9728edab;p=secnet.git diff --git a/slip.c b/slip.c index fad0a7e..6631fae 100644 --- a/slip.c +++ b/slip.c @@ -3,6 +3,25 @@ just whole packets. When transmitting we need to bytestuff anyway, and may be part-way through receiving. */ +/* + * This file is part of secnet. + * See README for full list of copyright holders. + * + * secnet is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * secnet is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * version 3 along with secnet; if not, see + * https://www.gnu.org/licenses/gpl.html. + */ + #include "secnet.h" #include "util.h" #include "netlink.h" @@ -419,7 +438,7 @@ static list_t *userv_apply(closure_t *self, struct cloc loc, dict_t *context, item_t *item; dict_t *dict; - st=safe_malloc(sizeof(*st),"userv_apply"); + NEW(st); /* First parameter must be a dict */ item=list_elem(args,0);