Changeset dbca297 for lib


Ignore:
Timestamp:
2015-12-09T07:46:21Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
977a9d5
Parents:
459dec8
Message:

proxy: fix validation of the proxytype value

Coverity says it could be an out of bounds read, but the value is set
internally, so not really. Still, good point about the condition being
wrong.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/proxy.c

    r459dec8 rdbca297  
    542542        phb->data = data;
    543543
    544         if (proxyhost[0] && proxyport > 0 && proxytype >= 0 && proxytype <= G_N_ELEMENTS(proxy_connect_funcs_array)) {
     544        if (proxyhost[0] && proxyport > 0 && proxytype >= 0 && proxytype < G_N_ELEMENTS(proxy_connect_funcs_array)) {
    545545                fun = proxy_connect_funcs_array[proxytype];
    546546        } else {
Note: See TracChangeset for help on using the changeset viewer.