issue-scconfig-10_3-trunk-26 Issue8095 - prevent crash on OS X 10.3 when urllib or urllib2 request network proxy configuration via _scproxy. (Patch by Ronald Oussoren) APPLIES trunk, 2.6 diff -r 9d7f46130d6d Mac/Modules/_scproxy.c --- Mac/Modules/_scproxy.c Tue Mar 09 02:53:52 2010 -0800 +++ Mac/Modules/_scproxy.c Tue Mar 09 03:23:01 2010 -0800 @@ -64,13 +64,18 @@ result = PyDict_New(); if (result == NULL) goto error; - aNum = CFDictionaryGetValue(proxyDict, + if (kSCPropNetProxiesExcludeSimpleHostnames != NULL) { + aNum = CFDictionaryGetValue(proxyDict, kSCPropNetProxiesExcludeSimpleHostnames); - if (aNum == NULL) { - v = PyBool_FromLong(0); - } else { - v = PyBool_FromLong(cfnum_to_int32(aNum)); + if (aNum == NULL) { + v = PyBool_FromLong(0); + } else { + v = PyBool_FromLong(cfnum_to_int32(aNum)); + } + } else { + v = PyBool_FromLong(0); } + if (v == NULL) goto error; r = PyDict_SetItemString(result, "exclude_simple", v);