X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/32654a316b5925914f5e5f481971d47f9728edab..86420bb75f19f628ffd2d8ff9964e59ed99e3187:/slip.c diff --git a/slip.c b/slip.c index fad0a7e..a75d50e 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 d 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);