]> andersk Git - openssh.git/blobdiff - openbsd-compat/port-aix.c
- (dtucker) [auth.c openbsd-compat/port-aix.c] Bug #1207: always call
[openssh.git] / openbsd-compat / port-aix.c
index a7ced57e9c6ad2d7f5377b8f0b762079602c7ad8..13a73e873cebbf27a2d42c457f83277c1f89d7a9 100644 (file)
@@ -265,15 +265,17 @@ sys_auth_record_login(const char *user, const char *host, const char *ttynm,
     Buffer *loginmsg)
 {
        char *msg = NULL;
+       static int msg_done = 0;
        int success = 0;
 
        aix_setauthdb(user);
        if (loginsuccess((char *)user, (char *)host, (char *)ttynm, &msg) == 0) {
                success = 1;
-               if (msg != NULL) {
+               if (msg != NULL && loginmsg != NULL && !msg_done) {
                        debug("AIX/loginsuccess: msg %s", msg);
                        buffer_append(loginmsg, msg, strlen(msg));
                        xfree(msg);
+                       msg_done = 1;
                }
        }
        aix_restoreauthdb();
This page took 0.037545 seconds and 4 git commands to generate.