diff options
| author | 2022-10-25 18:44:29 +0200 | |
|---|---|---|
| committer | 2022-10-25 18:44:29 +0200 | |
| commit | 8f17e80cc1163db360c8cf0326c34164e7604cea (patch) | |
| tree | 91b96a3fe8b1aeba01a7becb48871fb4a0d2a8b7 | |
| parent | Some code moving to avoid false positive leaks. (diff) | |
| download | penes-snac2-8f17e80cc1163db360c8cf0326c34164e7604cea.tar.gz penes-snac2-8f17e80cc1163db360c8cf0326c34164e7604cea.tar.xz penes-snac2-8f17e80cc1163db360c8cf0326c34164e7604cea.zip | |
Fixed another bug in actor_get().
| -rw-r--r-- | data.c | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -779,6 +779,13 @@ int actor_get(snac *snac, char *actor, d_char **data) | |||
| 779 | int status; | 779 | int status; |
| 780 | FILE *f; | 780 | FILE *f; |
| 781 | 781 | ||
| 782 | if (strcmp(actor, snac->actor) == 0) { | ||
| 783 | if (data) | ||
| 784 | *data = msg_actor(snac); | ||
| 785 | |||
| 786 | return 200; | ||
| 787 | } | ||
| 788 | |||
| 782 | t = mtime(fn); | 789 | t = mtime(fn); |
| 783 | 790 | ||
| 784 | /* no mtime? there is nothing here */ | 791 | /* no mtime? there is nothing here */ |