summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 30d538a)
raw | patch | inline | side by side (parent: 30d538a)
author | Lennart Poettering <lennart@poettering.net> | |
Wed, 1 Mar 2006 01:49:25 +0000 (01:49 +0000) | ||
committer | Lennart Poettering <lennart@poettering.net> | |
Wed, 1 Mar 2006 01:49:25 +0000 (01:49 +0000) |
src/session.c | patch | blob | history |
diff --git a/src/session.c b/src/session.c
index 60b1fd4e4431ef41f1615a15c1b01468475f3923..febd9b4dc1dbb59bffdaec784d2c3f63eac68ac6 100644 (file)
--- a/src/session.c
+++ b/src/session.c
@@ -105,7 +105,8 @@ static int ne_auth_creds_cb(__unused void *userdata, const char *realm, int atte
username = password = NULL;
}
- fprintf(stderr, "Realm '%s' requires authentication.\n", realm);
+ if (!username || !password)
+ fprintf(stderr, "Realm '%s' requires authentication.\n", realm);
if (!username)
username = ask_user("Username", 0);