162 |
&& strcmp(acl->community->name, clos->community)) |
&& strcmp(acl->community->name, clos->community)) |
163 |
return 0; |
return 0; |
164 |
if (list_locate(acl->netlist, data, _netdef_cmp)) { |
if (list_locate(acl->netlist, data, _netdef_cmp)) { |
165 |
clos->access = acl->community->access; |
clos->access = acl->community ? acl->community->access : 0; |
166 |
return 1; |
return 1; |
167 |
} |
} |
168 |
return 0; |
return 0; |
1127 |
debug(1, ("returning")); |
debug(1, ("returning")); |
1128 |
/* preserve the rest of vars */ |
/* preserve the rest of vars */ |
1129 |
*vresp = snmp_var_dup_list(vp); |
*vresp = snmp_var_dup_list(vp); |
|
*vpp = NULL; |
|
1130 |
return answer; |
return answer; |
1131 |
} |
} |
1132 |
/* No error. |
/* No error. |
1158 |
answer->err_stat)); |
answer->err_stat)); |
1159 |
/* preserve the rest of vars */ |
/* preserve the rest of vars */ |
1160 |
*vresp = snmp_var_dup_list(vp); |
*vresp = snmp_var_dup_list(vp); |
|
*vpp = NULL; |
|
1161 |
return answer; |
return answer; |
1162 |
} |
} |
1163 |
/* No error. |
/* No error. |