util: Fix the logic in ms_fnmatch_protocol()
authorAndreas Schneider <asn@samba.org>
Thu, 26 Oct 2017 07:47:57 +0000 (09:47 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 2 Mar 2018 13:07:14 +0000 (14:07 +0100)
commitea893be35a909c35d5a977a5abd76cb48e24eed6
treea964bb318b354798f1e13141b47dd5fd9ae4cb59
parentf3b650fc75b8edb27a852b88f469e8cd4a317f99
util: Fix the logic in ms_fnmatch_protocol()

Make sure we always pass a valid max_n pointer to ms_fnmatch_core().

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
lib/util/ms_fnmatch.c