about summary refs log tree commit diff
path: root/src/libnsss/nsss_all_endspent.c
blob: c5587cb8bfefaf001e1e8042b1f7b4ae021f74c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* ISC license. */

#include <nsss/shadow-unix.h>
#include <nsss/shadow-switch.h>
#include <nsss/shadow-all.h>
#include "nsss-all-internal.h"

void nsss_all_endspent (void)
{
  if (nsss_all_errno) goto fallback ;
  nsss_switch_endspent() ;
  return ;

 fallback:
  nsss_unix_endspent() ;
  nsss_all_errno = 0 ;
}