Skip to content
Snippets Groups Projects
Commit dd7ae9be authored by rswindell's avatar rswindell
Browse files

Fixed bug in sockopt() function (always returned first option value).

parent f4fc1ec4
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ int DLLCALL sockopt(char* str)
int i;
for(i=0;option_names[i].name;i++) {
if(stricmp(str,option_names[i].name))
if(stricmp(str,option_names[i].name)==0)
return(option_names[i].value);
}
return(strtoul(str,NULL,0));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment