diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-11 11:25:25 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-11 11:25:25 +0200 |
commit | 71a14055adfaa2a43cb1cf0c6d3c05acb6ed1ef0 (patch) | |
tree | b1314b06a4a111b4c5d0bb5cd2362035b1b70f1f | |
parent | b184158a6e54f15a048c1d1bcd27da4463e696a8 (diff) | |
download | rsyslog-71a14055adfaa2a43cb1cf0c6d3c05acb6ed1ef0.tar.gz rsyslog-71a14055adfaa2a43cb1cf0c6d3c05acb6ed1ef0.tar.xz rsyslog-71a14055adfaa2a43cb1cf0c6d3c05acb6ed1ef0.zip |
fix: wrong variable was populated in MsgGetProp()
problem in this morning's change, never released
-rw-r--r-- | runtime/msg.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/msg.c b/runtime/msg.c index 473246e6..09ee59e2 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -2796,7 +2796,7 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, RET_OUT_OF_MEMORY; } else { *pbMustBeFreed = 1; - *pPropLen = 10; + bufLen = 10; } break; case PROP_SYS_YEAR: @@ -2804,7 +2804,7 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, RET_OUT_OF_MEMORY; } else { *pbMustBeFreed = 1; - *pPropLen = 4; + bufLen = 4; } break; case PROP_SYS_MONTH: @@ -2812,7 +2812,7 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, RET_OUT_OF_MEMORY; } else { *pbMustBeFreed = 1; - *pPropLen = 2; + bufLen = 2; } break; case PROP_SYS_DAY: @@ -2820,7 +2820,7 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, RET_OUT_OF_MEMORY; } else { *pbMustBeFreed = 1; - *pPropLen = 2; + bufLen = 2; } break; case PROP_SYS_HOUR: @@ -2828,7 +2828,7 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, RET_OUT_OF_MEMORY; } else { *pbMustBeFreed = 1; - *pPropLen = 2; + bufLen = 2; } break; case PROP_SYS_HHOUR: @@ -2836,7 +2836,7 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, RET_OUT_OF_MEMORY; } else { *pbMustBeFreed = 1; - *pPropLen = 2; + bufLen = 2; } break; case PROP_SYS_QHOUR: @@ -2844,7 +2844,7 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, RET_OUT_OF_MEMORY; } else { *pbMustBeFreed = 1; - *pPropLen = 2; + bufLen = 2; } break; case PROP_SYS_MINUTE: @@ -2852,7 +2852,7 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, RET_OUT_OF_MEMORY; } else { *pbMustBeFreed = 1; - *pPropLen = 2; + bufLen = 2; } break; case PROP_SYS_MYHOSTNAME: |