summaryrefslogtreecommitdiff
path: root/rx/XAuth.c
diff options
context:
space:
mode:
Diffstat (limited to 'rx/XAuth.c')
-rw-r--r--rx/XAuth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rx/XAuth.c b/rx/XAuth.c
index 89e904b..bf10915 100644
--- a/rx/XAuth.c
+++ b/rx/XAuth.c
@@ -36,6 +36,7 @@ The Open Group.
#ifndef XFUNCPROTO_NOT_AVAILABLE
#include <X11/Xauth.h>
#endif
+#include "XAuth.h"
static void
printhexdigit(char *ptr, unsigned int d)
@@ -136,7 +137,7 @@ SECURITY extension not supported\n");
}
auth_return = XSecurityGenerateAuthorization(dpy, auth_in, xsamask,
&xsa, auth_id_ret);
- if (auth_return == 0) {
+ if (auth_return == NULL) {
fprintf(stderr,
"Error: Failed to setup authorization, cannot create key\n");
goto error;