mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-10 06:23:01 +03:00
Don't shadow a global variable.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@522 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
12
libssh/dh.c
12
libssh/dh.c
@@ -849,23 +849,23 @@ STRING *ssh_get_pubkey(SSH_SESSION *session){
|
||||
}
|
||||
|
||||
static int match(const char *group, const char *object){
|
||||
const char *p;
|
||||
const char *a;
|
||||
const char *z;
|
||||
|
||||
p = z = group;
|
||||
a = z = group;
|
||||
do {
|
||||
p = strchr(z, ',');
|
||||
if (p == NULL) {
|
||||
a = strchr(z, ',');
|
||||
if (a == NULL) {
|
||||
if (strcmp(z, object) == 0) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
} else {
|
||||
if (strncmp(z, object, p - z) == 0) {
|
||||
if (strncmp(z, object, a - z) == 0) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
z = p + 1;
|
||||
z = a + 1;
|
||||
} while(1);
|
||||
|
||||
/* not reached */
|
||||
|
Reference in New Issue
Block a user