]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
dccp_recv: Avoid NULL pointer dereference.
authorAndre Noll <maan@systemlinux.org>
Thu, 15 Sep 2011 12:33:14 +0000 (14:33 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 21 Sep 2011 09:04:12 +0000 (11:04 +0200)
dccp_recv.c:48:16: warning: Access to field 'btrp' results in a dereference of a null pointer (loaded from variable 'pdd')
        btr_pool_free(pdd->btrp);
                      ^~~

In dccp_recv_close(), if pdd is NULL, we avoid closing pdd->fd but
dereference pdd nevertheless one line later. Fix this by returning
early if pdd is NULL.


No differences found