Hi, On 15 December 2016 at 20:49, David Sommerseth <open...@sf.lists.topphemmelig.net> wrote: > On 15/12/16 19:52, Steffan Karger wrote: >> - if (strstr(line, "peer-id ") != line) >> + if (strcmp(line, "peer-id ") == 0) > > Are you sure about this strcmp()? I'd expect line to contain > "peer-id 1" or something like that ... so the result would be 49 (or > anything not 0) .... strncmp(line, "peer-id ", 8) would provide a match > though.
Hrmpf, you're absolutely right. That's what I get for rushing out a patch. I'll send a v2 shortly. -Steffan ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel