diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2013-08-10 07:39:15 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2013-08-10 07:39:15 +0000 |
commit | 29e6d17ad1d88a5156b4c44ff927a4ae7be2c279 (patch) | |
tree | 08725b0f1e7a80c03efbb177c5dbf52363530a9f /lib | |
parent | b12d985141739c8604c74a8943c612d0285c0708 (diff) | |
download | FreeBSD-src-29e6d17ad1d88a5156b4c44ff927a4ae7be2c279.zip FreeBSD-src-29e6d17ad1d88a5156b4c44ff927a4ae7be2c279.tar.gz |
Fix the return value when we found a symbol in .dynstr. This nasty bug was
preventing a lot of symbol lookups in dtruss -s, for example.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libproc/proc_sym.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libproc/proc_sym.c b/lib/libproc/proc_sym.c index 4bef7f0..2dd21fe 100644 --- a/lib/libproc/proc_sym.c +++ b/lib/libproc/proc_sym.c @@ -299,6 +299,7 @@ proc_addr2sym(struct proc_handle *p, uintptr_t addr, char *name, * the function. */ symcopy->st_value = rsym; + error = 0; goto out; } } |