mirror of
https://repo.or.cz/socat.git
synced 2025-07-25 03:32:57 +00:00
Fixed an issue in options processing on TUN and DNS flags
This commit is contained in:
parent
b43c30b6b9
commit
682a12e00e
2 changed files with 4 additions and 1 deletions
|
@ -4002,7 +4002,7 @@ int applyopts_single(struct single *xfd, struct opt *opts, enum e_phase phase) {
|
|||
void *masks = (char *)xfd + opt->desc->major;
|
||||
size_t masksize = opt->desc->minor;
|
||||
unsigned long bit = opt->desc->arg3;
|
||||
switch (masksize) {
|
||||
switch (masksize>>1) {
|
||||
case sizeof(uint16_t):
|
||||
if (opt->value.u_bool) {
|
||||
((uint16_t *)masks)[0] |= bit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue