~ubuntu-branches/ubuntu/hardy/postfix/hardy-security

« back to all changes in this revision

Viewing changes to src/util/dict_sdbm.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2007-04-15 16:00:44 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20070415160044-xl1vjlhf9mdmf43a
Tags: 2.4.0-3
Have preinst get user approval before installing (and being broken) on a
pre-2.6 kernel.  Closes: #417530

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    /*
88
88
     * Optionally fold the key.
89
89
     */
90
 
    if (dict->fold_buf) {
 
90
    if (dict->flags & DICT_FLAG_FOLD_FIX) {
 
91
        if (dict->fold_buf == 0)
 
92
            dict->fold_buf = vstring_alloc(10);
91
93
        vstring_strcpy(dict->fold_buf, name);
92
94
        name = lowercase(vstring_str(dict->fold_buf));
93
95
    }
155
157
    /*
156
158
     * Optionally fold the key.
157
159
     */
158
 
    if (dict->fold_buf) {
 
160
    if (dict->flags & DICT_FLAG_FOLD_FIX) {
 
161
        if (dict->fold_buf == 0)
 
162
            dict->fold_buf = vstring_alloc(10);
159
163
        vstring_strcpy(dict->fold_buf, name);
160
164
        name = lowercase(vstring_str(dict->fold_buf));
161
165
    }
162
 
 
163
166
    dbm_key.dptr = (void *) name;
164
167
    dbm_value.dptr = (void *) value;
165
168
    dbm_key.dsize = strlen(name);
233
236
    /*
234
237
     * Optionally fold the key.
235
238
     */
236
 
    if (dict->fold_buf) {
 
239
    if (dict->flags & DICT_FLAG_FOLD_FIX) {
 
240
        if (dict->fold_buf == 0)
 
241
            dict->fold_buf = vstring_alloc(10);
237
242
        vstring_strcpy(dict->fold_buf, name);
238
243
        name = lowercase(vstring_str(dict->fold_buf));
239
244
    }