mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 10:42:45 +00:00
44bc301921
Reported by: jrtc27
Fixes: 2582ae5740
MFC after: 1 month
24 lines
388 B
C
24 lines
388 B
C
/*
|
|
* Copyright (C) 2012 by Darren Reed.
|
|
*
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
|
*
|
|
* $Id: allocmbt.c,v 1.1.4.1 2012/07/22 08:04:24 darren_r Exp $
|
|
*/
|
|
|
|
#include "ipf.h"
|
|
|
|
mb_t *
|
|
allocmbt(size_t len)
|
|
{
|
|
mb_t *m;
|
|
|
|
m = (mb_t *)malloc(sizeof(mb_t));
|
|
if (m == NULL)
|
|
return (NULL);
|
|
m->mb_len = len;
|
|
m->mb_next = NULL;
|
|
m->mb_data = (char *)m->mb_buf;
|
|
return (m);
|
|
}
|