comparison src/dnsbl.cpp @ 187:f0eda59e8afd

fix null pointer dereference from missing HELO command
author carl
date Sat, 10 Nov 2007 10:20:54 -0800
parents 2a80c9b5d2c9
children edcefdb7ccc1
comparison
equal deleted inserted replaced
186:2a80c9b5d2c9 187:f0eda59e8afd
427 427
428 mlfiPriv* fetch_priv_from_ctx(SMFICTX *ctx); 428 mlfiPriv* fetch_priv_from_ctx(SMFICTX *ctx);
429 mlfiPriv* fetch_priv_from_ctx(SMFICTX *ctx) 429 mlfiPriv* fetch_priv_from_ctx(SMFICTX *ctx)
430 { 430 {
431 mlfiPriv *priv = (struct mlfiPriv *)smfi_getpriv(ctx); 431 mlfiPriv *priv = (struct mlfiPriv *)smfi_getpriv(ctx);
432 priv.ctx = ctx; 432 priv->ctx = ctx;
433 return priv; 433 return priv;
434 } 434 }
435 #define MLFIPRIV fetch_priv_from_ctx(ctx) 435 #define MLFIPRIV fetch_priv_from_ctx(ctx)
436 436
437 437