Opened 4 years ago

Closed 4 years ago

#1202 closed Bug / Defect (notabug)

OpenVPN Interactive Service Windows working directory not accepted

Reported by: nbk01 Owned by: Samuli Seppänen
Priority: minor Milestone:
Component: Community services Version: OpenVPN 2.4.7 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:


When i send a startup Request via namedpipe. I send a Windows working directory i.e. C:\Pedro and the service responds with Startup data ends at working directory. It doesn't matter which directory i send.
I posted some more information in the following topic in the forum

Change History (3)

comment:1 Changed 4 years ago by Selva Nair

My guess: you may be formatting the string as single byte characters (say, ascii) but the service expects wide characters. That would explain why it sees only one token (the working directory) when the whole string is terminated by two nul bytes or it says no nul termination otherwise.

See for the specification of startup data.

comment:2 Changed 4 years ago by nbk01

Thx, change the encoding to 16 bit utf and it works like a charm

comment:3 Changed 4 years ago by Selva Nair

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.