version 1.270, 2014/01/31 16:39:19 |
version 1.271, 2014/03/03 22:22:30 |
|
|
u_int envsize; |
u_int envsize; |
u_int i, namelen; |
u_int i, namelen; |
|
|
|
if (strchr(name, '=') != NULL) { |
|
error("Invalid environment variable \"%.100s\"", name); |
|
return; |
|
} |
|
|
/* |
/* |
* Find the slot where the value should be stored. If the variable |
* Find the slot where the value should be stored. If the variable |
* already exists, we reuse the slot; otherwise we append a new slot |
* already exists, we reuse the slot; otherwise we append a new slot |
|
|
char *name, *val; |
char *name, *val; |
u_int name_len, val_len, i; |
u_int name_len, val_len, i; |
|
|
name = packet_get_string(&name_len); |
name = packet_get_cstring(&name_len); |
val = packet_get_string(&val_len); |
val = packet_get_cstring(&val_len); |
packet_check_eom(); |
packet_check_eom(); |
|
|
/* Don't set too many environment variables */ |
/* Don't set too many environment variables */ |