~ubuntu-branches/ubuntu/raring/dansguardian/raring

« back to all changes in this revision

Viewing changes to src/Auth.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt, Thomas Viehmann
  • Date: 2008-10-13 09:29:35 UTC
  • mfrom: (1.1.7 upstream) (7.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081013092935-g8uz3kgfjs37ikgv
Tags: 2.9.9.7-2
[ Thomas Viehmann ]
OptionContainer.cpp: If you need to iterate through all lines in the
config file to find a field, at least don't abuse the configfile deque
by accessing it as if it was an array with signed index.
Works way better on arm, too, i.e. closes: #493047.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
// INCLUDES
25
25
 
 
26
#ifdef HAVE_CONFIG_H
 
27
        #include "dgconfig.h"
 
28
#endif
26
29
#include "Auth.hpp"
27
30
#include "OptionContainer.hpp"
28
31
 
39
42
extern authcreate_t identcreate;
40
43
extern authcreate_t ipcreate;
41
44
 
42
 
#ifdef __NTLM
 
45
#ifdef ENABLE_NTLM
43
46
extern authcreate_t ntlmcreate;
44
47
#endif
45
48
 
153
156
                return ipcreate(cv);
154
157
        }
155
158
 
156
 
#ifdef __NTLM
 
159
#ifdef ENABLE_NTLM
157
160
        if (plugname == "proxy-ntlm") {
158
161
#ifdef DGDEBUG
159
162
                std::cout << "Enabling proxy-NTLM auth plugin" << std::endl;