]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
IAPP: Avoid warnings on unused write
authorJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 15:03:38 +0000 (18:03 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 15:03:38 +0000 (18:03 +0300)
The hlen and len variables are identical here, but only the hlen was
used in the end. Change this to use the len variable to avoid
unnecessary static analyzer warnings about unused writes.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/iapp.c

index 9b2900f235e374f6755fa3baf2aabc039f811011..99aa04dc3dd91d36b6a19fef25aa3f122ad68310 100644 (file)
@@ -361,7 +361,7 @@ static void iapp_receive_udp(int sock, void *eloop_ctx, void *sock_ctx)
 
        switch (hdr->command) {
        case IAPP_CMD_ADD_notify:
-               iapp_process_add_notify(iapp, &from, hdr, hlen - sizeof(*hdr));
+               iapp_process_add_notify(iapp, &from, hdr, len - sizeof(*hdr));
                break;
        case IAPP_CMD_MOVE_notify:
                /* TODO: MOVE is using TCP; so move this to TCP handler once it