Lines Matching refs:to
423 * decoded, ip points to the index of the failed variable (errors
731 * We need a number of pointers to apply the fixes afterwards.
902 * Be sure not to cobber b, when something fails.
1159 snmp_value_copy(struct snmp_value *to, const struct snmp_value *from)
1161 to->var = from->var;
1162 to->syntax = from->syntax;
1165 if ((to->v.octetstring.len = from->v.octetstring.len) == 0)
1166 to->v.octetstring.octets = NULL;
1168 to->v.octetstring.octets = malloc(to->v.octetstring.len);
1169 if (to->v.octetstring.octets == NULL)
1171 (void)memcpy(to->v.octetstring.octets,
1172 from->v.octetstring.octets, to->v.octetstring.len);
1175 to->v = from->v;
1247 u_char *nocts; /* to avoid memory leak */