From: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH 4/4] alfred: Fix test for failed sendbuf allocation
Date: Wed, 17 Oct 2012 22:18:15 +0200 [thread overview]
Message-ID: <20121017201815.GD31782@pandem0nium> (raw)
In-Reply-To: <1350503758-20685-4-git-send-email-sven@narfation.org>
[-- Attachment #1: Type: text/plain, Size: 643 bytes --]
Applied in revision 4f92363.
Thanks,
Simon
On Wed, Oct 17, 2012 at 09:55:58PM +0200, Sven Eckelmann wrote:
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> ---
> recv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recv.c b/recv.c
> index dce7e50..8ddf7ab 100644
> --- a/recv.c
> +++ b/recv.c
> @@ -217,7 +217,7 @@ int send_alfred_packet(struct globals *globals, uint8_t *dest, void *buf,
> char *sendbuf;
>
> sendbuf = malloc(sizeof(*ethhdr) + length);
> - if (!buf)
> + if (!sendbuf)
> return -1;
>
> ethhdr = (struct ethhdr *)sendbuf;
> --
> 1.7.10.4
>
>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-10-17 20:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-17 19:55 [B.A.T.M.A.N.] [PATCH 1/4] alfred: Prepare makefile for distibutions Sven Eckelmann
2012-10-17 19:55 ` [B.A.T.M.A.N.] [PATCH 2/4] alfred: Fix parsing of short program parameter -v and -V Sven Eckelmann
2012-10-17 20:17 ` Simon Wunderlich
2012-10-17 19:55 ` [B.A.T.M.A.N.] [PATCH 3/4] alfred: Test for failed global memory allocation Sven Eckelmann
2012-10-17 20:17 ` Simon Wunderlich
2012-10-17 19:55 ` [B.A.T.M.A.N.] [PATCH 4/4] alfred: Fix test for failed sendbuf allocation Sven Eckelmann
2012-10-17 20:18 ` Simon Wunderlich [this message]
2012-10-17 20:16 ` [B.A.T.M.A.N.] [PATCH 1/4] alfred: Prepare makefile for distibutions Simon Wunderlich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121017201815.GD31782@pandem0nium \
--to=simon.wunderlich@s2003.tu-chemnitz.de \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox