mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-13 04:42:23 +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){
|
static int match(const char *group, const char *object){
|
||||||
const char *p;
|
const char *a;
|
||||||
const char *z;
|
const char *z;
|
||||||
|
|
||||||
p = z = group;
|
a = z = group;
|
||||||
do {
|
do {
|
||||||
p = strchr(z, ',');
|
a = strchr(z, ',');
|
||||||
if (p == NULL) {
|
if (a == NULL) {
|
||||||
if (strcmp(z, object) == 0) {
|
if (strcmp(z, object) == 0) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
if (strncmp(z, object, p - z) == 0) {
|
if (strncmp(z, object, a - z) == 0) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
z = p + 1;
|
z = a + 1;
|
||||||
} while(1);
|
} while(1);
|
||||||
|
|
||||||
/* not reached */
|
/* not reached */
|
||||||
|
Reference in New Issue
Block a user