libvlc: backport smb2 patches

This commit fixes a possible null-deref when stopping a smb2 session.
4 jobs for !210 with smb2-backport-patches in 18 minutes and 53 seconds (queued for 4 seconds)
detached
Status Job ID Name Coverage
  Build
failed #298382
android debian
build-libvlc-arm64

00:18:42

failed #298383
android debian
build-libvlc-armv7

00:18:37

failed #298384
android debian
build-libvlc-x86

00:18:52

failed #298385
android debian
build-libvlc-x86_64

00:18:52

 
Name Stage Failure
failed
build-libvlc-x86_64 Build
[x86_64] Gdbserver      : [x86_64-linux-android] libs/x86_64/gdbserver
[x86_64] Gdbsetup : libs/x86_64/gdb.setup
[x86_64] Install : libc++_shared.so => libs/x86_64/libc++_shared.so
[x86_64] SharedLibrary : libvlc.so
/builddir/tguillem/vlc-android/vlc/contrib/contrib-android-x86_64-linux-android/smb2/lib/init.c:218: error: undefined reference to 'getlogin_r'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ndk/obj/local/x86_64/libvlc.so] Error 1
make: Leaving directory `/builddir/tguillem/vlc-android/vlc/build-android-x86_64-linux-android'
ERROR: Job failed: exit code 1
failed
build-libvlc-x86 Build
[x86] Gdbserver      : [i686-linux-android] libs/x86/gdbserver
[x86] Gdbsetup : libs/x86/gdb.setup
[x86] Install : libc++_shared.so => libs/x86/libc++_shared.so
[x86] SharedLibrary : libvlc.so
/builddir/tguillem/vlc-android/vlc/contrib/contrib-android-i686-linux-android/smb2/lib/init.c:218: error: undefined reference to 'getlogin_r'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ndk/obj/local/x86/libvlc.so] Error 1
make: Leaving directory `/builddir/tguillem/vlc-android/vlc/build-android-i686-linux-android'
ERROR: Job failed: exit code 1
failed
build-libvlc-arm64 Build
[arm64-v8a] Gdbsetup       : libs/arm64-v8a/gdb.setup
[arm64-v8a] Install : libc++_shared.so => libs/arm64-v8a/libc++_shared.so
[arm64-v8a] SharedLibrary : libvlc.so
/builddir/tguillem/vlc-android/vlc/contrib/aarch64-linux-android/lib/libsmb2.a(libsmb2_la-init.o): In function `smb2_init_context':
/builddir/tguillem/vlc-android/vlc/contrib/contrib-android-aarch64-linux-android/smb2/lib/init.c:218: undefined reference to `getlogin_r'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ndk/obj/local/arm64-v8a/libvlc.so] Error 1
make: Leaving directory `/builddir/tguillem/vlc-android/vlc/build-android-aarch64-linux-android'
ERROR: Job failed: exit code 1
failed
build-libvlc-armv7 Build
[armeabi-v7a] Compile++ thumb: vlc <= dummy.cpp
[armeabi-v7a] Prebuilt : libc++_shared.so <= <NDK>/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/
[armeabi-v7a] Install : libc++_shared.so => libs/armeabi-v7a/libc++_shared.so
[armeabi-v7a] SharedLibrary : libvlc.so
/builddir/tguillem/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/smb2/lib/init.c:218: error: undefined reference to 'getlogin_r'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: Leaving directory `/builddir/tguillem/vlc-android/vlc/build-android-arm-linux-androideabi'
make: *** [ndk/obj/local/armeabi-v7a/libvlc.so] Error 1
ERROR: Job failed: exit code 1