]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix getsockopt_cmsg_data retrieval
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 30 May 2018 20:04:57 +0000 (17:04 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 1 Aug 2018 12:42:16 +0000 (09:42 -0300)
commitdc094865dbf79b7b6da5499a284598aa5e4ca8a5
tree35d190f485dba8ae7254e1f58ebaf7e6b75d1787
parentaa0b1d3b606652894c5a0e124632fa86b83aa6b6
lib: fix getsockopt_cmsg_data retrieval

The `type` parameter was not being compared with `cmsg_type`, so the
result of this function was always a pointer to the first header
matching the level.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
lib/sockopt.c