]>
Commit | Line | Data |
---|---|---|
380c4466 KK |
1 | --- cups-1.1.23/scheduler/ipp.c.orig 2005-01-03 20:29:59.000000000 +0100 |
2 | +++ cups-1.1.23/scheduler/ipp.c 2005-10-17 14:20:24.000000000 +0200 | |
3 | @@ -6792,7 +6792,9 @@ | |
4 | struct passwd *user; /* User info */ | |
5 | struct group *group; /* System group info */ | |
6 | char junk[33]; /* MD5 password (not used) */ | |
7 | + location_t *loc; /* Authentication location */ | |
8 | ||
9 | + loc = FindBest(con->uri, con->http.state); | |
10 | ||
11 | LogMessage(L_DEBUG2, "validate_user(%p[%d], \"%s\", %p, %d)\n", | |
12 | con, con->http.fd, owner, username, userlen); | |
13 | @@ -6801,6 +6803,9 @@ | |
14 | * Validate input... | |
15 | */ | |
16 | ||
17 | + if (loc->type == AUTH_NONE) | |
18 | + return (1); | |
19 | + | |
20 | if (con == NULL || owner == NULL || username == NULL || userlen <= 0) | |
21 | return (0); | |
22 |