diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/libwbclient/wbc_err_internal.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/nsswitch/libwbclient/wbc_err_internal.h b/source3/nsswitch/libwbclient/wbc_err_internal.h index ea501cba31..83364b8cd9 100644 --- a/source3/nsswitch/libwbclient/wbc_err_internal.h +++ b/source3/nsswitch/libwbclient/wbc_err_internal.h @@ -24,10 +24,11 @@ /* Private macros */ -#define BAIL_ON_WBC_ERROR(x) \ - do { \ - if ((x) != WBC_ERR_SUCCESS) \ - goto done; \ +#define BAIL_ON_WBC_ERROR(x) \ + do { \ + if (!WBC_ERROR_IS_OK(x)) { \ + goto done; \ + } \ } while(0); #define BAIL_ON_PTR_ERROR(x, status) \ |