Correct interpretation of edg_wll_gss_oid_equal().
authorZdeněk Salvet <salvet@ics.muni.cz>
Wed, 29 Aug 2007 15:20:50 +0000 (15:20 +0000)
committerZdeněk Salvet <salvet@ics.muni.cz>
Wed, 29 Aug 2007 15:20:50 +0000 (15:20 +0000)
org.glite.lb.server/src/bkserverd.c

index cf789b9..0d76177 100644 (file)
@@ -921,7 +921,7 @@ int bk_handle_connection(int conn, struct timeval *timeout, void *data)
        if ( !GSS_ERROR(maj_stat) )
        {
                if (ctx->peerName) free(ctx->peerName);
-               if (edg_wll_gss_oid_equal(name_type, GSS_C_NT_ANONYMOUS)) {
+               if (!edg_wll_gss_oid_equal(name_type, GSS_C_NT_ANONYMOUS)) {
                        ctx->peerName = (char *)token.value;
                        memset(&token, 0, sizeof(token));
                        dprintf(("[%d] client DN: %s\n",getpid(),ctx->peerName));